From: Jelmer Vernooij Date: Sun, 15 Mar 2009 16:02:08 +0000 (+0100) Subject: python: Always run with the same version of Python as we build against. X-Git-Tag: tdb-1.1.5~1082 X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=05a9d0266f9da163b84b830532fb9755a19874da python: Always run with the same version of Python as we build against. --- diff --git a/m4/check_python.m4 b/m4/check_python.m4 index 7e56af76f73..94537663137 100644 --- a/m4/check_python.m4 +++ b/m4/check_python.m4 @@ -41,7 +41,11 @@ dnl $PYTHON_CFLAGS dnl $PYTHON_LDFLAGS AC_DEFUN([AC_SAMBA_PYTHON_DEVEL], [ - AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]]) + if test -z "$PYTHON_VERSION"; then + AC_PATH_PROGS([PYTHON], [python2.6 python2.5 python2.4 python]) + else + AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]]) + fi if test -z "$PYTHON"; then working_python=no AC_MSG_WARN([No python found])