diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-11-12 06:04:39 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-11-12 06:04:39 (GMT) |
commit | 678fc1ee7df0932a6c65d3f98a510d3af1f6a8d0 (patch) | |
tree | ce78c51d3cee485cc151f3e0212d49ffda4623e1 /configure.in | |
parent | c7ff90bbbb50453613f777c252077422fa33856b (diff) | |
download | cpython-678fc1ee7df0932a6c65d3f98a510d3af1f6a8d0.zip cpython-678fc1ee7df0932a6c65d3f98a510d3af1f6a8d0.tar.gz cpython-678fc1ee7df0932a6c65d3f98a510d3af1f6a8d0.tar.bz2 |
Don't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/configure.in b/configure.in index 2bfe8c3..76061d1 100644 --- a/configure.in +++ b/configure.in @@ -34,23 +34,8 @@ SOVERSION=1.0 # 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 -# undef _XOPEN_SOURCE -#endif]) - define_xopen_source=yes -# 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. -AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Define to activate Unix95-and-earlier features) -AC_DEFINE(_POSIX_C_SOURCE, 199506L, Define to activate features from IEEE Stds 1003.{123}-1995) - # Arguments passed to configure. AC_SUBST(CONFIG_ARGS) CONFIG_ARGS="$ac_configure_args" @@ -135,11 +120,25 @@ case $ac_sys_system/$ac_sys_release in # even though select is a POSIX function. Reported by J. Ribbens. OpenBSD/2.* | OpenBSD/3.@<:@012@:>@) define_xopen_source=no;; + # On FreeBSD 5.0, chroot and setgroups are not declared if _XOPEN_SOURCE + # is define. Reported by M. Recht. + FreeBSD/5.0*) + define_xopen_source=no;; esac if test $define_xopen_source = yes then - AC_DEFINE(_XOPEN_SOURCE, 500) + AC_DEFINE(_XOPEN_SOURCE, 600, + Define to the level of X/Open that your system supports) + + # 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. + + AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Define to activate Unix95-and-earlier features) + AC_DEFINE(_POSIX_C_SOURCE, 200112L, Define to activate features from IEEE Stds 1003.1-2001) + fi # |