-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [adding bug-autoconf]
According to Matthew Woehlke on 4/29/2009 1:07 PM: >> Typically, -qlanglvl=extc99 is a better choice for GNU software. > > I tried that also, but it results in configure picking '-qlanglvl=extc99 > -qlanglvl=ansi', which presumably defeats the purpose. (IOW, extc99 mode > is not C89-compliant as autoconf is checking for that; stdc99 mode > however is accepted.) > >>> FYI: adding the autoconf check to turn on c99 mode is broken; >>> autoconf picks up -qlanglvl=ansi from the ANSI c89 check, and >>> doesn't know how to try alternatives (this affects other GNU >>> packages as well, most notably coreutils). >> >> Can you reformulate this paragraph so that it can serve as a bug report >> against Autoconf and/or other affected GNU packages? IOW: what exactly >> is broken, using AC_PROG_CC_C99 after AC_PROG_CC_C89? > > I've no idea. I just know that at least coreutils does it in such a way > that configure doesn't figure out to use either of > -qlanglvl={std,ext}c99. And that I've seen the same thing in other > packages. It may also have something to do with this statement of yours: > However, it seems said compiler also has no stdbool.h, and so the (broken) > replacement header is still used, ergo the original problem is not solved. C99 requires stdbool.h, but there have been other reports of people where this one aspect of C99 is missing, and as a result, the entire AC_PROG_CC_C99 fails to enable the remaining supported C99 features. Maybe some improvements can be made in that area. Also a question - does your compiler support _Bool, even though it lacks stdbool.h? - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkn44XsACgkQ84KuGfSFAYBbeACdGrIGP3r0+B7Paum5RU3wqCDf eAsAnRwDBFuMHaphBLurXMP5bH1vwoZV =x3aX -----END PGP SIGNATURE-----