summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2011-02-26 16:57:58 +0100
committerChristian Dywan <christian@twotoasts.de>2011-02-26 16:57:58 +0100
commitce4e881b5660a9a662a2bf4cbc7eb4f53ed117a5 (patch)
tree92ecc6bea01c7abdf3f8a217a2069ea8c8c1f77f /configure
parente440568a2d57f60c1f0eecb453bc5df045888735 (diff)
downloadmidori-ce4e881b5660a9a662a2bf4cbc7eb4f53ed117a5.tar.gz
Make 'configure' script look for python2
Fixes: https://bugs.launchpad.net/midori/+bug/715264
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 1f801a4a..f38dd4a4 100755
--- a/configure
+++ b/configure
@@ -38,6 +38,9 @@ cd $CUR_DIR
checkPython()
{
if [ -z "$PYTHON" ] ; then
+ PYTHON=`which python2 2>/dev/null`
+ fi
+ if [ -z "$PYTHON" ] ; then
PYTHON=`which python 2>/dev/null`
fi
printf "Checking for Python\t\t\t: "
@@ -85,6 +88,7 @@ checkWAF()
else
printf $GREEN"$WAF"$NORMAL"\n"
fi
+ WAF="$PYTHON $WAF"
}
# Generates a Makefile. Requires that $WAF is set.