From 1cef55f237128691fb56bbdb3f599df463ecbad3 Mon Sep 17 00:00:00 2001 From: dequis Date: Sun, 31 May 2015 22:00:28 -0300 Subject: 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. --- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'configure') 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 -- cgit v1.2.3