From: Anthony Baxter Date: Sat, 4 Oct 2003 07:46:23 +0000 (+0000) Subject: FreeBSD 4.8 and MacOS X 10.2 have a broken ncurses.h - if you don't X-Git-Tag: v2.4a1~1465 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6169c6bc1d27441f95fbab71ea504c8c01cc0fa9;p=python FreeBSD 4.8 and MacOS X 10.2 have a broken ncurses.h - if you don't define _XOPEN_EXTENDED_SOURCE, the bug isn't triggered. Testing on FreeBSD shows that nothing is broken by this change. --- diff --git a/configure b/configure index 53f567c093..837f3e80c7 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.436 . +# From configure.in Revision: 1.437 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.57 for python 2.4. # @@ -1452,6 +1452,12 @@ case $ac_sys_system/$ac_sys_release in # but used in struct sockaddr.sa_family. Reported by Tim Rice. SCO_SV/3.2) define_xopen_source=no;; + # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that + # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, + # this is fixed in 10.3, which identifies itself as Darwin/7.* + # This should hopefully be fixed in FreeBSD 4.9 + FreeBSD/4.8* | Darwin/6* ) + define_xopen_source=no;; esac if test $define_xopen_source = yes diff --git a/configure.in b/configure.in index 532b29b363..5a4a22c85c 100644 --- a/configure.in +++ b/configure.in @@ -150,6 +150,12 @@ case $ac_sys_system/$ac_sys_release in # but used in struct sockaddr.sa_family. Reported by Tim Rice. SCO_SV/3.2) define_xopen_source=no;; + # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that + # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, + # this is fixed in 10.3, which identifies itself as Darwin/7.* + # This should hopefully be fixed in FreeBSD 4.9 + FreeBSD/4.8* | Darwin/6* ) + define_xopen_source=no;; esac if test $define_xopen_source = yes