diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/configure.ac b/configure.ac index 62b14b14..b75f1c56 100644 --- a/configure.ac +++ b/configure.ac @@ -79,26 +79,10 @@ dnl dnl In this section, we check for the presence of important commands dnl and programs. -dnl--A bit simpler python init---------------------------------------- -dnl Expect python2.7 or python2.6 unless --with-python3 is given. -dnl---- - - -AC_ARG_WITH([python3], - [AS_HELP_STRING([--with-python3], [Set up to use Python 3 by default.])], - [], - [with_python3=yes]) -AS_IF([test "x$with_python3" != xno], - AC_CHECK_PROGS([PYTHON], [python3], [none]) - AC_SUBST([USE_PYTHON3], [true]) - AS_IF([test "x$PYTHON" = xnone], - [AC_MSG_FAILURE( - [--with-python3 given but no acceptable python3 could be found])]), - AC_CHECK_PROGS([PYTHON], [python2.7], [none]) - AC_SUBST([USE_PYTHON3], [false]) - AS_IF([test "x$PYTHON" = xnone], - [AC_MSG_FAILURE( - [No acceptable python (2.7) could be found])])) +AC_CHECK_PROGS([PYTHON], [python3], [none]) +AS_IF([test "x$PYTHON" = xnone], + [AC_MSG_FAILURE( + [--with-python3 given but no acceptable python3 could be found])]) dnl---- dnl With the following set of macros, we implement an option |