[Python-checkins] python/dist/src configure,1.323,1.324 configure.in,1.334,1.335 pyconfig.h.in,1.44,1.45

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sat, 20 Jul 2002 01:51:55 -0700


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv17988

Modified Files:
	configure configure.in pyconfig.h.in 
Log Message:
Define _XOPEN_SOURCE and _GNU_SOURCE in pyconfig.h, to have them
available in the configure tests already.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.323
retrieving revision 1.324
diff -C2 -d -r1.323 -r1.324
*** configure	19 Jul 2002 19:32:26 -0000	1.323
--- configure	20 Jul 2002 08:51:51 -0000	1.324
***************
*** 1,4 ****
  #! /bin/sh
! # From configure.in Revision: 1.333 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53.
--- 1,4 ----
  #! /bin/sh
! # From configure.in Revision: 1.334 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53.
***************
*** 1225,1228 ****
--- 1225,1245 ----
  
  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.

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.334
retrieving revision 1.335
diff -C2 -d -r1.334 -r1.335
*** configure.in	19 Jul 2002 19:32:30 -0000	1.334
--- configure.in	20 Jul 2002 08:51:52 -0000	1.335
***************
*** 21,24 ****
--- 21,37 ----
  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).
+ AC_DEFINE(_GNU_SOURCE, 1, [Define on Linux to activate all library features])
+ 
+ # The definition of _GNU_SOURCE potentially causes a change of the value
+ # of _XOPEN_SOURCE. So define it only conditionally.
+ AH_VERBATIM([_XOPEN_SOURCE],
+ [/* Define on UNIX to activate XPG/5 features.  */
+ #ifndef _XOPEN_SOURCE
+ # define _XOPEN_SOURCE 500
+ #endif])
+ AC_DEFINE(_XOPEN_SOURCE, 500)
+ 
  # Arguments passed to configure.
  AC_SUBST(CONFIG_ARGS)

Index: pyconfig.h.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/pyconfig.h.in,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** pyconfig.h.in	19 Jul 2002 19:32:30 -0000	1.44
--- pyconfig.h.in	20 Jul 2002 08:51:52 -0000	1.45
***************
*** 755,758 ****
--- 755,761 ----
  #undef _FILE_OFFSET_BITS
  
+ /* Define on Linux to activate all library features */
+ #undef _GNU_SOURCE
+ 
  /* This must be defined on some systems to enable large file support. */
  #undef _LARGEFILE_SOURCE
***************
*** 773,776 ****
--- 776,784 ----
  /* Define to force use of thread-safe errno, h_errno, and other functions */
  #undef _REENTRANT
+ 
+ /* Define on UNIX to activate XPG/5 features.  */
+ #ifndef _XOPEN_SOURCE
+ # define _XOPEN_SOURCE 500
+ #endif
  
  /* Define to 1 if type `char' is unsigned and you are not using gcc.  */