summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-04-08 17:25:27 +1000
committerAndrew Bartlett <abartlet@samba.org>2013-04-11 16:44:46 +1000
commit7955bf473f63e31566e29299b03d44d9b450d1ae (patch)
treee17ca9c4615454de5ae3ae30e6635ac8c1ae506a /m4
parentafd291b1dee44b2400bed119bccfc0b722d8cc9c (diff)
downloadsamba-7955bf473f63e31566e29299b03d44d9b450d1ae.tar.gz
samba-7955bf473f63e31566e29299b03d44d9b450d1ae.tar.bz2
samba-7955bf473f63e31566e29299b03d44d9b450d1ae.zip
build: Raise minimum python version to 2.5.0 for samba build
RHEL5 has a python26 package for a modern python, and was the main reason we kept python 2.5 support. However, this support never actually worked for AD DC installations, as samba-tool uses a feature only in 2.5 and above. Very few folks noticed and those were on RHEL5, and moving to 2.5 allows us to remove some other workarounds. Andrew Bartlett Reviewed-by: Matthieu Patou <mat@matws.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'm4')
-rw-r--r--m4/check_python.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/check_python.m4 b/m4/check_python.m4
index 9d0524a8e8..66dadbdbaa 100644
--- a/m4/check_python.m4
+++ b/m4/check_python.m4
@@ -43,7 +43,7 @@ dnl $PYTHON_LDFLAGS
AC_DEFUN([AC_SAMBA_PYTHON_DEVEL],
[
if test -z "$PYTHON_VER"; then
- AC_PATH_PROGS([PYTHON], [python2.6 python2.5 python2.4 python])
+ AC_PATH_PROGS([PYTHON], [python2.6 python2.5 python])
else
AC_PATH_PROG([PYTHON],[python[$PYTHON_VER]])
fi
@@ -91,9 +91,9 @@ AC_DEFUN([AC_SAMBA_PYTHON_DEVEL],
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))"`
+ if `$PYTHON -c "import sys; sys.exit(sys.version_info.__getslice__(0, 2) >= (2, 5))"`
then
- AC_MSG_WARN([Python ($PYTHON) is too old. At least version 2.4 is required])
+ AC_MSG_WARN([Python ($PYTHON) is too old. At least version 2.5 is required])
working_python=no
fi
fi