]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Dec 2006 06:39:40 +0000 (06:39 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Dec 2006 06:39:40 +0000 (06:39 +0000)
C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
the buggy -xc99 option of Forte Developer 7 C on Solaris 9.

ChangeLog
lib/autoconf/c.m4

index 0714e14d202c144f12345cffff88e5b89d769d95..50747efcaf70453ef324260f1ae481786504e937 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
+       C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
+       the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
+
 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
index 38586f96d2f5b307e19e2d35e0ad147bd18a2a99..0b610469a4fd2c0bc332cd7a7d80d7054a69cde9 100644 (file)
@@ -1278,11 +1278,11 @@ dnl GCC         -std=gnu99 (unused restrictive modes: -std=c99 -std=iso9899:1999)
 dnl AIX                -qlanglvl=extc99 (unused restrictive mode: -qlanglvl=stdc99)
 dnl Intel ICC  -c99
 dnl IRIX       -c99
-dnl Solaris    (unused because it causes the compiler to assume C99 semantics for
-dnl            library functions, and this is invalid before Solaris 10: -xc99)
+dnl Solaris    -xc99=all (Forte Developer 7 C mishandles -xc99 on Solaris 9,
+dnl            as it incorrectly assumes C99 semantics for library functions)
 dnl Tru64      -c99
 dnl with extended modes being tried first.
-[[-std=gnu99 -c99 -qlanglvl=extc99]], [$1], [$2])[]dnl
+[[-std=gnu99 -c99 -xc99=all -qlanglvl=extc99]], [$1], [$2])[]dnl
 ])# _AC_PROG_CC_C99