]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Attempt to fix OpenIndiana build issue introduced by #19922
authorChristian Heimes <christian@cheimes.de>
Sun, 8 Dec 2013 14:21:08 +0000 (15:21 +0100)
committerChristian Heimes <christian@cheimes.de>
Sun, 8 Dec 2013 14:21:08 +0000 (15:21 +0100)
configure
configure.ac

index 6bcc4b5b3e27245a421b0b19c372d12442e6d26e..101dd4462f1ade4a00eed377b72d7f997f7b9150 100755 (executable)
--- a/configure
+++ b/configure
@@ -3447,12 +3447,18 @@ fi
 
 # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
 case $ac_sys_system in
-hp*|HP*)
+  hp*|HP*)
+    define_stdc_a1=yes;;
+  *)
+    define_stdc_a1=no;;
+esac
+
+if test $define_stdc_a1 = yes
+then
 
 $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
 
-  ;;
-esac
+fi
 
 #
 # SGI compilers allow the specification of the both the ABI and the
index 2d701b1e6210a48d3844b2222b9555d67b38c75e..25e1dc88d5becf1ddfa3d05ebdb19d91b86326e6 100644 (file)
@@ -524,11 +524,17 @@ fi
 
 # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
 case $ac_sys_system in
-hp*|HP*)
-  AC_DEFINE(_INCLUDE__STDC_A1_SOURCE, 1, Define to include mbstate_t for mbrtowc)
-  ;;
+  hp*|HP*)
+    define_stdc_a1=yes;;
+  *)
+    define_stdc_a1=no;;
 esac
 
+if test $define_stdc_a1 = yes
+then
+  AC_DEFINE(_INCLUDE__STDC_A1_SOURCE, 1, Define to include mbstate_t for mbrtowc)
+fi
+
 #
 # SGI compilers allow the specification of the both the ABI and the
 # ISA on the command line.  Depending on the values of these switches,