]> spindle.queued.net Git - midori/commitdiff
Make 'configure' script look for python2
authorChristian Dywan <christian@twotoasts.de>
Sat, 26 Feb 2011 15:57:58 +0000 (16:57 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 26 Feb 2011 15:57:58 +0000 (16:57 +0100)
Fixes: https://bugs.launchpad.net/midori/+bug/715264
configure

index 1f801a4afdb54e44b248dbd6db7b68c4c51336ff..f38dd4a473343289b3d6dfbf0c8c302536be20f2 100755 (executable)
--- a/configure
+++ b/configure
@@ -37,6 +37,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
@@ -85,6 +88,7 @@ checkWAF()
        else
          printf $GREEN"$WAF"$NORMAL"\n"
        fi
+       WAF="$PYTHON $WAF"
 }
 
 # Generates a Makefile. Requires that $WAF is set.