[SCM] GNU Autoconf source repository branch, master, updated. v2.67-24-gbfc4d94

"Eric Blake" <[email protected]> Mon, 23 Aug 2010 20:44:16 +0000
Newsgroups gmane.comp.sysutils.autoconf.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=bfc4d94c7d92e8d463e830e28798ee7aadcfd47e

The branch, master has been updated
       via  bfc4d94c7d92e8d463e830e28798ee7aadcfd47e (commit)
      from  3b418ae86b4fa3d85be6a9d214bb70643da14344 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bfc4d94c7d92e8d463e830e28798ee7aadcfd47e
Author: Eric Blake <[email protected]>
Date:   Mon Aug 23 14:35:48 2010 -0600

    AC_HEADER_STDBOOL: avoid spurious clang failure
    
    * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Drop gcc (and by
    extension clang) check in favor of a gnulib test.  Force failure,
    rather than merely testing for a compiler extension.
    * THANKS: Update.
    Reported by Anders Kaseorg.
    
    Signed-off-by: Eric Blake <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog               |    9 +++++++++
 THANKS                  |    1 +
 lib/autoconf/headers.m4 |    8 ++++----
 3 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6d7bd7f..9b27194 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-08-23  Eric Blake  <[email protected]>
+
+	AC_HEADER_STDBOOL: avoid spurious clang failure
+	* lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Drop gcc (and by
+	extension clang) check in favor of a gnulib test.  Force failure,
+	rather than merely testing for a compiler extension.
+	* THANKS: Update.
+	Reported by Anders Kaseorg.
+
 2010-08-22  Ralf Wildenhues  <[email protected]>
 
 	doc: AIX sed dislikes indented comments.
diff --git a/THANKS b/THANKS
index 8f2691e..c79e21e 100644
--- a/THANKS
+++ b/THANKS
@@ -27,6 +27,7 @@ Alfred G. de Wijn           [email protected]
 Alfred M. Szmidt            [email protected]
 Allan Caffee                [email protected]
 Allan Clark                 [email protected]
+Anders Kaseorg              [email protected]
 Andreas Buening             [email protected]
 Andreas Jaeger              [email protected]
 Andreas Schott              [email protected]
diff --git a/lib/autoconf/headers.m4 b/lib/autoconf/headers.m4
index c8d34c0..b97e09a 100644
--- a/lib/autoconf/headers.m4
+++ b/lib/autoconf/headers.m4
@@ -639,7 +639,7 @@ AC_DEFUN([AC_HEADER_STDBOOL],
 	_Bool n[m];
 	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
-#	if defined __xlc__ || defined __GNUC__
+#	if defined __xlc__
 	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
 	    reported by James Lemley on 2005-10-05; see
 	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
@@ -651,12 +651,12 @@ AC_DEFUN([AC_HEADER_STDBOOL],
 	    Let us hope that IBM fixes the xlc bug, and also adds
 	    support for this kind of constant expression.  In the
 	    meantime, this test will reject xlc, which is OK, since
-	    our stdbool.h substitute should suffice.  We also test
-	    this with GCC, where it should work, to detect more
+	    the gnulib stdbool.h substitute should suffice.  Gnulib
+	    also tests this case in test-stdbool.c, to detect more
 	    quickly whether someone messes up the test in the
 	    future.  */
 	 char digs[] = "0123456789";
-	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
+	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : 0);
 #	endif
 	/* Catch a bug in an HP-UX C compiler.  See
 	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html


hooks/post-receive
-- 
GNU Autoconf source repository