diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-08-05 20:08:11 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-08-05 20:08:11 +0000 |
commit | f22f8cc841a3dcb0abc5b1a70edfbc31d20a1102 (patch) | |
tree | bc702d6252a4a0293e73e66bc4748b3adecc6e73 /configure.ac | |
parent | 0048fbc0d4df9b584c5976e7587b19ad9cc382ec (diff) | |
download | wireshark-f22f8cc841a3dcb0abc5b1a70edfbc31d20a1102.tar.gz wireshark-f22f8cc841a3dcb0abc5b1a70edfbc31d20a1102.tar.bz2 wireshark-f22f8cc841a3dcb0abc5b1a70edfbc31d20a1102.zip |
Fix the Python version check. Hopefully no one is running 1.5 or 1.6.
svn path=/trunk/; revision=51161
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
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 |