[Mesa-dev] [PATCH] build: Fix build on systems where /usr/bin/python isn't python 2.

Andreas Boll andreas.boll.dev at gmail.com
Tue Jan 22 01:18:36 PST 2013


NOTE: This is a candidate for the 9.0 branch.

... since 410b58c7bfc has the note too.

Reviewed-by: Andreas Boll <andreas.boll.dev at gmail.com>

2013/1/21 Kenneth Graunke <kenneth at whitecape.org>:
> 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).
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31598
> Cc: Matt Turner <mattst88 at gmail.com>
> Cc: zephiris at gmail.com
> ---
>  m4/ax_python_module.m4 | 8 ++++----
>  1 file 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)
> --
> 1.8.1.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list