Patch for gcc/, needed in egcs 1.1.2

Andreas Jaeger
Wed Feb 24 08:57:00 GMT 1999

gcc/ has a problem with the check for <inttypes.h> in egcs 
1.1.* (this is fixed in the mainstream but I couldn't find a ChangeLog 

The problem is that if you have <inttypes.h> and rerun configure; the
second time HAVE_INTTYPES_H is not defined since the cached value is
not considered.


1999-02-24  Andreas Jaeger  <>

	* (gcc_cv_c_have_stringify): Use test from mainstream 
	which works with cached value.

--- gcc/	Wed Feb 17 08:50:48 1999
+++ gcc/	Wed Feb 24 17:35:10 1999
@@ -196,15 +196,18 @@
 # Use <inttypes.h> only if it exists,
 # doesn't clash with <sys/types.h>, and declares intmax_t.
 AC_MSG_CHECKING(for inttypes.h)
+AC_MSG_CHECKING(for inttypes.h)
   [#include <sys/types.h>
 #include <inttypes.h>],
   [intmax_t i = -1;],
-   gcc_cv_header_inttypes_h=yes],
+  [gcc_cv_header_inttypes_h=yes],
+if test $gcc_cv_header_inttypes_h = yes; then
 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
 	index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \

 Andreas Jaeger
  for pgp-key finger

More information about the Gcc-patches mailing list