autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sys/types and inttypes.h in autoconf 2.50 in irix 5.3


From: Akim Demaille
Subject: Re: sys/types and inttypes.h in autoconf 2.50 in irix 5.3
Date: 23 Jun 2001 17:23:22 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor)

>>>>> "Bill" == Bill Schottstaedt <address@hidden> writes:

Bill> My apologies if this is already known

Yep, it was, but there is no need to excuse when you find bugs :)

How about this?

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
        inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
        5.3.

Index: NEWS
===================================================================
RCS file: /cvs/autoconf/NEWS,v
retrieving revision 1.162
diff -u -u -r1.162 NEWS
--- NEWS 2001/06/23 15:06:39 1.162
+++ NEWS 2001/06/23 15:15:06
@@ -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: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.739
diff -u -u -r1.739 acgeneral.m4
--- acgeneral.m4 2001/06/23 15:04:14 1.739
+++ acgeneral.m4 2001/06/23 15:15:06
@@ -2235,9 +2235,16 @@
 #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])
 ])
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]