aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 94a29129b2..6c27706136 100644
--- a/configure.ac
+++ b/configure.ac
@@ -105,11 +105,11 @@ if test ! -z "$PYTHON"; then
AC_MSG_CHECKING([whether $PYTHON is Python 2.5 or later])
python_major_version=`$PYTHON -c 'import sys; print (sys.version_info[[0]])'`
python_minor_version=`$PYTHON -c 'import sys; print (sys.version_info[[1]])'`
- if test "$python_major_version" -eq 2 -a "$python_minor_version" -ge 5 ; then
- AC_MSG_RESULT(yes)
- else
+ if test "$python_major_version" -eq 2 -a "$python_minor_version" -lt 5 ; then
AC_MSG_RESULT(no)
AC_MSG_WARN([Building with Python $python_major_version.$python_minor_version may not work])
+ else
+ AC_MSG_RESULT(yes)
fi
fi