[Python-checkins] commit of r41546 - python/branches/release24-maint

martin.v.loewis@python.org martin.v.loewis at python.org
Sat Nov 26 12:38:42 CET 2005


Author: martin.v.loewis
Date: Sat Nov 26 12:38:37 2005
New Revision: 41546
Modified:
 python/branches/release24-maint/configure
 python/branches/release24-maint/configure.in
Log:
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Also set _XOPEN_SOURCE to 500.
Modified: python/branches/release24-maint/configure
==============================================================================
--- python/branches/release24-maint/configure	(original)
+++ python/branches/release24-maint/configure	Sat Nov 26 12:38:37 2005
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.475.2.8 .
+# From configure.in Revision: 39265 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.4.
 #
@@ -1523,8 +1523,10 @@
 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.8|SunOS/5.9|SunOS/5.10)
 
 cat >>confdefs.h <<\_ACEOF
 #define _XOPEN_SOURCE 500
@@ -1544,12 +1546,19 @@
 # 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)
+ ;;
+ *)
 
 cat >>confdefs.h <<\_ACEOF
 #define _XOPEN_SOURCE_EXTENDED 1
 _ACEOF
 
+ ;;
+ esac
 
 
 cat >>confdefs.h <<\_ACEOF
Modified: python/branches/release24-maint/configure.in
==============================================================================
--- python/branches/release24-maint/configure.in	(original)
+++ python/branches/release24-maint/configure.in	Sat Nov 26 12:38:37 2005
@@ -183,8 +183,10 @@
 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.8|SunOS/5.9|SunOS/5.10)
 AC_DEFINE(_XOPEN_SOURCE, 500, 
 Define to the level of X/Open that your system supports)
 ;;
@@ -198,8 +200,16 @@
 # 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.
- 
- AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Define to activate Unix95-and-earlier features)
+ # 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)
+ ;;
+ *)
+ AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1,
+ 		Define to activate Unix95-and-earlier features)
+ ;;
+ esac
 
 AC_DEFINE(_POSIX_C_SOURCE, 200112L, Define to activate features from IEEE Stds 1003.1-2001)
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /