From dd919c63a137517886ba01e0e44703e63062963f Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Tue, 24 Jul 2012 13:16:59 -0700 Subject: [PATCH] fixed python executable detection --- m4/python.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/m4/python.m4 b/m4/python.m4 index 1d7c3d9e..457f2a04 100644 --- a/m4/python.m4 +++ b/m4/python.m4 @@ -86,6 +86,14 @@ if test "x$PY_VERSION" "!=" "x"; then PYTHON_EXECUTABLE=python$PY_VERSION AC_SUBST(PYTHON_EXECUTABLE) AC_MSG_RESULT([$PYTHON_EXECUTABLE]) + elif python -V >&5 2>&5;then + if python -V 2>&1 | grep -q "\b$PY_VERSION"; then + PYTHON_EXECUTABLE=python + AC_SUBST(PYTHON_EXECUTABLE) + AC_MSG_RESULT([$PYTHON_EXECUTABLE]) + else + AC_MSG_RESULT(["'python' executable is not version $PY_VERSION"]) + fi else AC_MSG_RESULT([failed]) fi -- 2.11.4.GIT