]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Detect _Bool bug in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Jun 2004 05:33:27 +0000 (05:33 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Jun 2004 05:33:27 +0000 (05:33 +0000)
ChangeLog
lib/autoconf/headers.m4

index 971b0425a48317770e693b36e399cdd735a065c1..00bba64a947e97376cccc61de725302a12986c5e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
+       in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
+       by Jim Meyering.
+
 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
 
        * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
index c17b65011513c57a0f15747f3e33782f06696ee4..13edf945fbe68463d85617d9b822694717e3f5cb 100644 (file)
@@ -530,8 +530,14 @@ AC_DEFUN([AC_HEADER_STDBOOL],
        char g[true];
        char h[sizeof (_Bool)];
        char i[sizeof s.t];
+       enum { j = false, k = true, l = false * true, m = true * 256 };
+       _Bool n[m];
+       char o[sizeof n == m * sizeof n[0] ? 1 : -1];
       ]],
-      [[ return !a + !b + !c + !d + !e + !f + !g + !h + !i; ]])],
+      [[
+        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
+                + !m + !n + !o);
+      ]])],
       [ac_cv_header_stdbool_h=yes],
       [ac_cv_header_stdbool_h=no])])
 AC_CHECK_TYPES([_Bool])