summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-26 13:33:00 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-10-26 13:33:00 (GMT)
commite4826580bc8ebb37459ae689c71f8ae64e57ad05 (patch)
tree45231e593c19de359c5d15aa4b81b69d38edf13f /configure
parent7fbd01262cab438eb57a72bb66a46c9311aecec2 (diff)
downloadcpython-e4826580bc8ebb37459ae689c71f8ae64e57ad05.zip
cpython-e4826580bc8ebb37459ae689c71f8ae64e57ad05.tar.gz
cpython-e4826580bc8ebb37459ae689c71f8ae64e57ad05.tar.bz2
Patch #628898: Define _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 18 insertions, 3 deletions
diff --git a/configure b/configure
index 3e7e901..35071dc 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 1.357 .
+# From configure.in Revision: 1.358 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
#
@@ -901,7 +901,7 @@ esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
+ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
@@ -1242,6 +1242,21 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
+# On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires definition
+# of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else several APIs
+# are not declared. Since this is also needed in some cases for HP-UX,
+# we define it globally.
+
+cat >>confdefs.h <<\_ACEOF
+#define _XOPEN_SOURCE_EXTENDED 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define _POSIX_C_SOURCE 199506L
+_ACEOF
+
+
# Arguments passed to configure.
CONFIG_ARGS="$ac_configure_args"
@@ -17160,7 +17175,7 @@ esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
+ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`