]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
authorAkim Demaille <akim@epita.fr>
Sat, 23 Jun 2001 15:18:46 +0000 (15:18 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 23 Jun 2001 15:18:46 +0000 (15:18 +0000)
inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
5.3.

ChangeLog
NEWS
acgeneral.m4
lib/autoconf/general.m4

index ba95e9425dfe9f53df0adf957e83db05e2a8beca..46e0c1afa2fab71f94bce14d01e0bf2a3b890b95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-06-23  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
+       inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
+       5.3.
+
 2001-06-23  Paolo Bonzini <bonzini@gnu.org>
 
        * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
diff --git a/NEWS b/NEWS
index a1c66ae15f56311c27b48ae077debcb7d3d29581..4c931f416d1c5efbdb89471cdae22b2b278231b1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,8 @@
   likely.
 - `config.status foo' works properly when `foo' depends on variables
   set in an AC_CONFIG_THING INIT-CMD.
+- if inttypes.h and sys/types.h are conflicting, consider inttypes.h
+  doesn't exist.
 
 ** Generic macros
 - AC_CHECK_HEADER and AC_CHECK_HEADERS support a fourth argument to
index d12d9bf70736caca3ca55d6abdb56793bb0619e6..c82b96414dac976c3c7a2b657ea878ab179a6b1b 100644 (file)
@@ -2235,9 +2235,16 @@ ac_includes_default="\
 #endif"
 ])dnl
 AC_REQUIRE([AC_HEADER_STDC])dnl
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
-                  inttypes.h stdint.h unistd.h],
+                  stdint.h unistd.h],
                  [], [], $ac_includes_default)
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#define HAVE_INTTYPES_H 1
+$ac_includes_default])],
+                  [ac_cv_header_inttypes_h=yes,
+AC_DEFINE([HAVE_INTTYPES_H], 1,
+          [Define if you have the <inttypes.h> header file.])],
+                  [ac_cv_header_inttypes_h=no])
 ])
 
 
index d12d9bf70736caca3ca55d6abdb56793bb0619e6..c82b96414dac976c3c7a2b657ea878ab179a6b1b 100644 (file)
@@ -2235,9 +2235,16 @@ ac_includes_default="\
 #endif"
 ])dnl
 AC_REQUIRE([AC_HEADER_STDC])dnl
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
-                  inttypes.h stdint.h unistd.h],
+                  stdint.h unistd.h],
                  [], [], $ac_includes_default)
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#define HAVE_INTTYPES_H 1
+$ac_includes_default])],
+                  [ac_cv_header_inttypes_h=yes,
+AC_DEFINE([HAVE_INTTYPES_H], 1,
+          [Define if you have the <inttypes.h> header file.])],
+                  [ac_cv_header_inttypes_h=no])
 ])