[Python-checkins] python/dist/src configure,1.320,1.321 configure.in,1.330,1.331

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Thu, 18 Jul 2002 15:39:36 -0700


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

Modified Files:
	configure configure.in 
Log Message:
Define _XOPEN_SOURCE in configure and Python.h.

This gets compilation of posixmodule.c to succeed on Tru64 and does no
harm on Linux.  We may need to undefine it on some platforms, but
let's wait and see.

Martin says:

> I think it is generally the right thing to define _XOPEN_SOURCE on
> Unix, providing a negative list of systems that cannot support this
> setting (or preferably solving whatever problems remain).
> 
> I'd put an (unconditional) AC_DEFINE into configure.in early on; it
> *should* go into confdefs.h as configure proceeds, and thus be active
> when other tests are performed.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.320
retrieving revision 1.321
diff -C2 -d -r1.320 -r1.321
*** configure	18 Jul 2002 20:25:43 -0000	1.320
--- configure	18 Jul 2002 22:39:32 -0000	1.321
***************
*** 1,4 ****
  #! /bin/sh
! # From configure.in Revision: 1.329 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53.
--- 1,4 ----
  #! /bin/sh
! # From configure.in Revision: 1.330 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53.
***************
*** 1225,1228 ****
--- 1225,1233 ----
  
  SOVERSION=1.0
+ 
+ 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.330
retrieving revision 1.331
diff -C2 -d -r1.330 -r1.331
*** configure.in	18 Jul 2002 20:25:46 -0000	1.330
--- configure.in	18 Jul 2002 22:39:34 -0000	1.331
***************
*** 21,24 ****
--- 21,26 ----
  SOVERSION=1.0
  
+ AC_DEFINE(_XOPEN_SOURCE, 500)
+ 
  # Arguments passed to configure.
  AC_SUBST(CONFIG_ARGS)