summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2010-05-28 15:28:47 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2010-05-28 15:28:47 (GMT)
commitb41afb55446cf57abca6a8bcf1b38fe84b0d9e6b (patch)
treed6c136530a4212d78c1c83596c64e5825c95aa0c /configure
parent9b14ae88149d7d0c6c08ecd177359fdb999774b6 (diff)
downloadcpython-b41afb55446cf57abca6a8bcf1b38fe84b0d9e6b.zip
cpython-b41afb55446cf57abca6a8bcf1b38fe84b0d9e6b.tar.gz
cpython-b41afb55446cf57abca6a8bcf1b38fe84b0d9e6b.tar.bz2
Issue #1759169: Drop _XOPEN_SOURCE on Solaris.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure32
1 files changed, 7 insertions, 25 deletions
diff --git a/configure b/configure
index 116c02a..8f53afe 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 81077 .
+# From configure.in Revision: 81509 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.65 for python 2.7.
#
@@ -3031,9 +3031,12 @@ $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
# Marc Recht
NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
define_xopen_source=no;;
- # On Solaris 2.6, sys/wait.h is inconsistent in the usage
- # of union __?sigval. Reported by Stuart Bishop.
- SunOS/5.6)
+ # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
+ # request to enable features supported by the standard as a request
+ # to disable features not supported by the standard. The best way
+ # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
+ # entirely and define __EXTENSIONS__ instead.
+ SunOS/*)
define_xopen_source=no;;
# On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
# but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
@@ -3079,38 +3082,17 @@ esac
if test $define_xopen_source = yes
then
- # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
- # defined precisely as g++ defines it
- # Furthermore, on Solaris 10, XPG6 requires the use of a C99
- # compiler
- case $ac_sys_system/$ac_sys_release in
- SunOS/5.8|SunOS/5.9|SunOS/5.10)
-
-$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
-
- ;;
- *)
$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
- ;;
- esac
# 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.
- # except for Solaris 10, where it must not be defined,
- # as it implies XPG4.2
- case $ac_sys_system/$ac_sys_release in
- SunOS/5.10)
- ;;
- *)
$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
- ;;
- esac
$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h