summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-01-21 10:42:50 -0800
committerKenneth Graunke <kenneth@whitecape.org>2013-01-22 09:05:32 -0800
commit121d19de920212225586c9269f2d34ab7e6e1aec (patch)
treeb1031446490c576d00515b018dbb0f2cc1f58cc3 /m4
parent148fc6d53716f39971a453792570c2b8c207efb6 (diff)
downloadexternal_mesa3d-121d19de920212225586c9269f2d34ab7e6e1aec.zip
external_mesa3d-121d19de920212225586c9269f2d34ab7e6e1aec.tar.gz
external_mesa3d-121d19de920212225586c9269f2d34ab7e6e1aec.tar.bz2
build: Fix build on systems where /usr/bin/python isn't python 2.
configure.ac sets up a PYTHON2 variable, which is what we want AX_PYTHON_MODULE to use (since we only use Python 2 for now). NOTE: This is a candidate for the 9.0 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31598 Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/ax_python_module.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/m4/ax_python_module.m4 b/m4/ax_python_module.m4
index 3afc404..2e6670a 100644
--- a/m4/ax_python_module.m4
+++ b/m4/ax_python_module.m4
@@ -25,13 +25,13 @@
AU_ALIAS([AC_PYTHON_MODULE], [AX_PYTHON_MODULE])
AC_DEFUN([AX_PYTHON_MODULE],[
- if test -z $PYTHON;
+ if test -z $PYTHON2;
then
- PYTHON="python"
+ PYTHON2="python"
fi
- PYTHON_NAME=`basename $PYTHON`
+ PYTHON_NAME=`basename $PYTHON2`
AC_MSG_CHECKING($PYTHON_NAME module: $1)
- $PYTHON -c "import $1" 2>/dev/null
+ $PYTHON2 -c "import $1" 2>/dev/null
if test $? -eq 0;
then
AC_MSG_RESULT(yes)