summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorPeter Eisentraut2017-02-21 14:27:02 +0000
committerPeter Eisentraut2017-02-21 14:49:22 +0000
commit04aad401867ad3e1519615d8486e32b50dbcb5f5 (patch)
treea9126115b80ba8a03b84f0e9b16864c307eae911 /configure.in
parent0bf41dd1908a0c05833168b9972e1c52cb7547b7 (diff)
Drop support for Python 2.3
There is no specific reason for this right now, but keeping support for old Python versions around indefinitely increases the maintenance burden. The oldest supported Python version is now Python 2.4, which is still shipped in RHEL/CentOS 5 by default. In configure, add a check for the required Python version and give a friendly error message for an old version, instead of relying on an obscure build error later on.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 01b618c931d..9e4fb0fa80a 100644
--- a/configure.in
+++ b/configure.in
@@ -927,6 +927,9 @@ fi
if test "$with_python" = yes; then
PGAC_PATH_PYTHON
PGAC_CHECK_PYTHON_EMBED_SETUP
+ if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 4; then
+ AC_MSG_ERROR([Python version $python_version is too old (version 2.4 or later is required)])
+ fi
fi
if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then