]> granicus.if.org Git - python/commitdiff
Apply patch #1016224: configure.in change to allow build of _bsddb module on
authorTrent Mick <trentm@activestate.com>
Wed, 25 Aug 2004 23:55:59 +0000 (23:55 +0000)
committerTrent Mick <trentm@activestate.com>
Wed, 25 Aug 2004 23:55:59 +0000 (23:55 +0000)
AIX 5.1.

configure.in

index 60ad582cc16c564a7cf5a3d417bd238173b10f63..1e02983a4ccacd170a4bdd7f1edc4e0f90ac5947 100644 (file)
@@ -161,11 +161,16 @@ case $ac_sys_system/$ac_sys_release in
   # This should hopefully be fixed in FreeBSD 4.9
   FreeBSD/4.8* | Darwin/6* )
     define_xopen_source=no;;
-  # On AIX 4, mbstate_t is defined only when _XOPEN_SOURCE == 500 but used in
-  # wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined or
-  # has another value. By not (re)defining it, the defaults come in place.
+  # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
+  # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
+  # or has another value. By not (re)defining it, the defaults come in place.
   AIX/4)
     define_xopen_source=no;;
+  AIX/5)
+    if test `uname -r` -eq 1; then
+      define_xopen_source=no
+    fi
+    ;;
 esac
 
 if test $define_xopen_source = yes