summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2001-05-31 07:32:27 +0000
committerAkim Demaille <akim@epita.fr>2001-05-31 07:32:27 +0000
commit7312c775f1fdce89bddec9488ae139e039752f0f (patch)
treeda8111a58023f0bebafa35938f09c1c0b0c404b9
parentede868b1e6fd5eba22f71dd93e534d3886ec1e20 (diff)
downloadautoconf-7312c775f1fdce89bddec9488ae139e039752f0f.tar.gz
* acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
stdlib.h. From Paul Eggert and Lars Hecking.
-rw-r--r--ChangeLog6
-rw-r--r--NEWS3
-rw-r--r--acgeneral.m46
-rw-r--r--doc/autoconf.texi4
-rw-r--r--lib/autoconf/general.m46
5 files changed, 23 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5bda1ba8..24f1e489 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2001-05-31 Akim Demaille <akim@epita.fr>
+ * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
+ stdlib.h.
+ From Paul Eggert and Lars Hecking.
+
+2001-05-31 Akim Demaille <akim@epita.fr>
+
* tests/base.at: Adjust line numbers in error messages.
2001-05-31 Akim Demaille <akim@epita.fr>
diff --git a/NEWS b/NEWS
index 90f06337..51edbe0a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,7 @@
* Major changes in Autoconf 2.50a -*- outline -*-
+** Default includes
+Now include stdint.h.
+
* Major changes in Autoconf 2.50
diff --git a/acgeneral.m4 b/acgeneral.m4
index 0d8c7600..3deae136 100644
--- a/acgeneral.m4
+++ b/acgeneral.m4
@@ -2333,13 +2333,17 @@ ac_includes_default="\
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
])dnl
AC_REQUIRE([AC_HEADER_STDC])dnl
-AC_CHECK_HEADERS(stdlib.h string.h memory.h strings.h inttypes.h unistd.h)
+AC_CHECK_HEADERS(stdlib.h string.h memory.h strings.h inttypes.h stdint.h unistd.h)
])
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index d8e1b057..204bf952 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -2797,6 +2797,10 @@ Most generic macros provide the following default set of includes:
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
index 0d8c7600..3deae136 100644
--- a/lib/autoconf/general.m4
+++ b/lib/autoconf/general.m4
@@ -2333,13 +2333,17 @@ ac_includes_default="\
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
])dnl
AC_REQUIRE([AC_HEADER_STDC])dnl
-AC_CHECK_HEADERS(stdlib.h string.h memory.h strings.h inttypes.h unistd.h)
+AC_CHECK_HEADERS(stdlib.h string.h memory.h strings.h inttypes.h stdint.h unistd.h)
])