Bootstrapping glibc vs. dependency on system headers

Thomas Schwinge thomas@codesourcery.com
Fri Jan 18 10:37:00 GMT 2013


Hi!

On Thu, 17 Jan 2013 18:09:33 +0100, I wrote:
> Also known as: »I found another one«.

(That's the last one I'm currently seeing.)  Again depending on
<gnu/stubs.h> usability, we either get:

    checking for [GCC] option to accept ISO C89... none needed

Or:

    checking for [GCC] option to accept ISO C89... unsupported

As setting »ac_cv_prog_cc_c89=no« (which we never check for) is all what
this test does, and we're C89 always by our compiler requirements, it is
safe to simply elide it.  Tested on x86_64 GNU/Linux for a ARM GNU/Linux
host.  OK to apply?

	* configure.in (_AC_PROG_CC_C89): New definition.

diff --git configure.in configure.in
index ee72c17..edc7f72 100644
--- configure.in
+++ configure.in
@@ -42,6 +42,10 @@ AC_MSG_RESULT([$CPP])
 AC_SUBST(CPP)dnl
 ])# AC_PROG_CPP
 
+# We require GCC.  Override _AC_PROG_CC_C89 here to work around the Autoconf
+# issue discussed in [idem].
+AC_DEFUN([_AC_PROG_CC_C89], [[$1]])
+
 
 dnl This is here so we can set $subdirs directly based on configure fragments.
 AC_CONFIG_SUBDIRS()


Grüße,
 Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20130118/bbf4a8ab/attachment.sig>


More information about the Gcc mailing list