Do not require python3.3 explicitely

It's easier to say "use python3.3+" rather than prevent usage of earlier
versions programmatically in autoconf.
This commit is contained in:
Boris Bobrov 2016-01-07 18:28:52 +03:00 committed by Christopher Allan Webber
parent 6db9c5258c
commit cf948352b2

View File

@ -89,11 +89,11 @@ AC_ARG_WITH([python3],
[], [],
[with_python3=no]) [with_python3=no])
AS_IF([test "x$with_python3" != xno], AS_IF([test "x$with_python3" != xno],
AC_CHECK_PROGS([PYTHON], [python3.3], [none]) AC_CHECK_PROGS([PYTHON], [python3], [none])
AC_SUBST([USE_PYTHON3], [true]) AC_SUBST([USE_PYTHON3], [true])
AS_IF([test "x$PYTHON" = xnone], AS_IF([test "x$PYTHON" = xnone],
[AC_MSG_FAILURE( [AC_MSG_FAILURE(
[--with-python3 given but no acceptable python3 (3.3) could be found])]), [--with-python3 given but no acceptable python3 could be found])]),
AC_CHECK_PROGS([PYTHON], [python2.7], [none]) AC_CHECK_PROGS([PYTHON], [python2.7], [none])
AC_SUBST([USE_PYTHON3], [false]) AC_SUBST([USE_PYTHON3], [false])
AS_IF([test "x$PYTHON" = xnone], AS_IF([test "x$PYTHON" = xnone],