diff options
| -rw-r--r-- | m4/ac_pkg_cython.m4 | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/m4/ac_pkg_cython.m4 b/m4/ac_pkg_cython.m4 index aeae6a0..1b640e7 100644 --- a/m4/ac_pkg_cython.m4 +++ b/m4/ac_pkg_cython.m4 | |||
| @@ -41,11 +41,17 @@ AC_DEFUN([AC_PROG_CYTHON],[ | |||
| 41 | if test -z "$available_patch" ; then | 41 | if test -z "$available_patch" ; then |
| 42 | [available_patch=0] | 42 | [available_patch=0] |
| 43 | fi | 43 | fi |
| 44 | if test $available_major -ne $required_major \ | 44 | if test $available_major -gt $required_major || \ |
| 45 | -o $available_minor -ne $required_minor \ | 45 | ( test $available_major -eq $required_major && \ |
| 46 | -o $available_patch -lt $required_patch ; then | 46 | test $available_minor -gt $required_minor ) || \ |
| 47 | ( test $available_major -eq $required_major && \ | ||
| 48 | test $available_minor -eq $required_minor && \ | ||
| 49 | test $available_patch -ge $required_patch ) ; then | ||
| 50 | |||
| 51 | AC_MSG_NOTICE([Cython executable is '$CYTHON']) | ||
| 52 | else | ||
| 47 | AC_MSG_WARN([Cython version >= $1 is required. You have $cython_version. You should look at http://www.cython.org]) | 53 | AC_MSG_WARN([Cython version >= $1 is required. You have $cython_version. You should look at http://www.cython.org]) |
| 48 | CYTHON=false | 54 | CYTHON='echo "Error: Cython version >= $1 is required. You have '"$cython_version"'. You should look at http://www.cython.org" ; false' |
| 49 | fi | 55 | fi |
| 50 | else | 56 | else |
| 51 | AC_MSG_WARN([cannot determine Cython version]) | 57 | AC_MSG_WARN([cannot determine Cython version]) |
