aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-05-31 22:00:28 -0300
committerdequis <dx@dxzone.com.ar>2015-06-04 14:13:22 -0300
commit1cef55f237128691fb56bbdb3f599df463ecbad3 (patch)
tree8021fd48cafb8a6e3524b90b20dd1f0651c72894 /configure
parentfd45e859aad9a4978afdff0478fc05d8290d75e7 (diff)
configure: allow specifying location of python executable
Because openbsd/netbsd don't have a 'python' in the PATH unless the user creates the symlink explicitly.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index c7607f54..fb9effca 100755
--- a/configure
+++ b/configure
@@ -684,14 +684,20 @@ if [ "$skype" = "1" -o "$skype" = "plugin" ]; then
protocols_mods="$protocol_mods skype(plugin)"
fi
+if [ -z "$PYTHON" ]; then
+ PYTHON=python
+fi
+
if [ "$doc" = "1" ]; then
# check this here just in case someone tries to install it in python2.4...
- if ! python -m xml.etree.ElementTree > /dev/null 2>&1; then
+ if ! $PYTHON -m xml.etree.ElementTree > /dev/null 2>&1; then
echo
echo 'ERROR: Python (>=2.5 or 3.x) is required to generate docs'
+ echo "(Use the PYTHON environment variable if it's in a weird location)"
exit 1
fi
echo "DOC=1" >> Makefile.settings
+ echo "PYTHON=$PYTHON" >> Makefile.settings
fi
get_version