diff options
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/external/python.m4 | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d603cda1a..dcf2494de 100644 --- a/configure.ac +++ b/configure.ac @@ -230,6 +230,7 @@ AM_CONDITIONAL([HAVE_MANPAGES], [test "x$HAVE_MANPAGES" != "x"]) AM_CONDITIONAL([HAVE_PO4A], [test "x$PO4A" != "xno"]) if test x$HAVE_PYTHON_BINDINGS != x; then + PYTHON=python2 AM_PATH_PYTHON([2.4]) AM_CHECK_PYTHON_HEADERS([], AC_MSG_ERROR([Could not find python headers])) diff --git a/src/external/python.m4 b/src/external/python.m4 index cfe9961c7..b5d05e49e 100644 --- a/src/external/python.m4 +++ b/src/external/python.m4 @@ -9,7 +9,7 @@ AC_DEFUN([AM_PYTHON_CONFIG], dnl We need to check for python build flags using distutils.sysconfig dnl We cannot use python-config, as it was not available on older dnl versions of python - AC_PATH_PROG(PYTHON, python) + AC_PATH_PROG(PYTHON, python2) AC_MSG_CHECKING([for working python]) if test -x "$PYTHON"; then PYTHON_CFLAGS="`$PYTHON -c \"from distutils import sysconfig; \ |