From b80e8b76ad377c24865bb2eb5931893279f1f042 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 9 Jun 2014 09:01:13 +0200 Subject: CONFIGURE: Prefer python2 The configure script failed with python3 checking for python... /usr/bin/python checking for python version... 3.3 checking for python platform... linux checking for python script directory... ${prefix}/lib/python3.3/site-packages checking for python extension module directory... ${exec_prefix}/lib64/python3.3/site-packages checking for headers required to compile python extensions... File "", line 1 import sys; print sys.prefix ^ SyntaxError: invalid syntax File "", line 1 import sys; print sys.exec_prefix ^ SyntaxError: invalid syntax not found configure: error: Could not find python headers Reviewed-by: Jakub Hrozek Reviewed-by: Pavel Reichl --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') 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])) -- cgit