[sr #110451] autoconf 2.71 generated configure file does not enable C compiler flag for C99 on Solaris 10

Bruno Haible <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
Follow-up Comment #4, sr #110451 (project autoconf):

> AC_PROG_CC(_C99) intentionally doesn't use -xc99 with Sun's compilers. ...
see the thread starting at:
https://lists.gnu.org/archive/html/autoconf/2010-12/msg00059.html

Indeed, this option, together with the per-program flags __xpg4 and __xpg6
makes it impossible to build reliably working libraries. So, I withdraw this
suggestion.

> The test for C99 compliance was made pickier in Autoconf 2.70, and
-D_STDC_C99, which it does use, is no longer enough for Sun's compiler to pass
the test.

I have now documented the use of -D_STDC_C99 in
https://gitlab.com/ghwiki/gnow-how/-/wikis/Platforms/Configuration;
nevertheless it was good that Autoconf 2.69 added -D_STDC_C99 automatically.
Support for part of C99 is better than support for none of C99. Therefore a
less picky test is better than a pickier one.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110451>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.