diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/check_python.m4 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/m4/check_python.m4 b/m4/check_python.m4 index 8ca0ead189..9d0524a8e8 100644 --- a/m4/check_python.m4 +++ b/m4/check_python.m4 @@ -76,11 +76,6 @@ AC_DEFUN([AC_SAMBA_PYTHON_DEVEL], if test x$PYTHON != x then - if `$PYTHON -c "import sys; sys.exit(sys.version_info.__getslice__(0, 2) >= (2, 4))"` - then - AC_MSG_ERROR([Python ($PYTHON) is too old. At least version 2.4 is required]) - fi - DISTUTILS_CFLAGS=`$PYTHON -c "from distutils import sysconfig; \ print '-I%s -I%s %s' % ( \ sysconfig.get_python_inc(), \ @@ -95,6 +90,12 @@ AC_DEFUN([AC_SAMBA_PYTHON_DEVEL], sysconfig.get_config_var('LDFLAGS'), \ sysconfig.get_config_var('LIBPL'))"` TRY_LINK_PYTHON($DISTUTILS_LDFLAGS, $DISTUTILS_CFLAGS) + + if `$PYTHON -c "import sys; sys.exit(sys.version_info.__getslice__(0, 2) >= (2, 4))"` + then + AC_MSG_WARN([Python ($PYTHON) is too old. At least version 2.4 is required]) + working_python=no + fi fi AC_MSG_CHECKING(working python module support) |