summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-07-20 08:51:52 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-07-20 08:51:52 (GMT)
commit6f18a3c12409b190a2909871f6653901e7412a5f (patch)
tree4f6653457f0e5c096210b4542b4103b4e283ad77 /configure
parent0a30e648e06be85b3380a62ae156a9c7f343392f (diff)
downloadcpython-6f18a3c12409b190a2909871f6653901e7412a5f.zip
cpython-6f18a3c12409b190a2909871f6653901e7412a5f.tar.gz
cpython-6f18a3c12409b190a2909871f6653901e7412a5f.tar.bz2
Define _XOPEN_SOURCE and _GNU_SOURCE in pyconfig.h, to have them
available in the configure tests already.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 18 insertions, 1 deletions
diff --git a/configure b/configure
index 4bd4740..7fc3bfd 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 1.333 .
+# From configure.in Revision: 1.334 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
#
@@ -1225,6 +1225,23 @@ VERSION=2.3
SOVERSION=1.0
+# The later defininition of _XOPEN_SOURCE disables certain features
+# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
+
+cat >>confdefs.h <<\_ACEOF
+#define _GNU_SOURCE 1
+_ACEOF
+
+
+# The definition of _GNU_SOURCE potentially causes a change of the value
+# of _XOPEN_SOURCE. So define it only conditionally.
+
+
+cat >>confdefs.h <<\_ACEOF
+#define _XOPEN_SOURCE 500
+_ACEOF
+
+
# Arguments passed to configure.
CONFIG_ARGS="$ac_configure_args"