Check for python 2.4 instead of 2.3
This commit is contained in:
parent
64446eb9b2
commit
51009a408d
1 changed files with 3 additions and 3 deletions
|
@ -352,10 +352,10 @@ if test "x$python" = "xyes"; then
|
|||
PYTHON_VERSION="${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}"
|
||||
AC_MSG_RESULT([$PYTHON, $PYTHON_VERSION, $PYTHON_PREFIX])
|
||||
|
||||
AC_MSG_CHECKING(whether Python is at least 2.3)
|
||||
if test $PYTHON_VERSION_MAJOR -lt 2 -o $PYTHON_VERSION_MAJOR -eq 2 -a $PYTHON_VERSION_MINOR -lt 3; then
|
||||
AC_MSG_CHECKING(whether Python is at least 2.4)
|
||||
if test $PYTHON_VERSION_MAJOR -lt 2 -o $PYTHON_VERSION_MAJOR -eq 2 -a $PYTHON_VERSION_MINOR -lt 4; then
|
||||
AC_MSG_RESULT(no)
|
||||
AC_ERROR(Wesnoth requires at least Python 2.3)
|
||||
AC_ERROR(Wesnoth requires at least Python 2.4)
|
||||
fi
|
||||
AC_MSG_RESULT(yes)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue