+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
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
#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])
])
#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])
])