diff options
author | Akim Demaille <akim@epita.fr> | 2001-05-31 07:32:27 +0000 |
---|---|---|
committer | Akim Demaille <akim@epita.fr> | 2001-05-31 07:32:27 +0000 |
commit | 7312c775f1fdce89bddec9488ae139e039752f0f (patch) | |
tree | da8111a58023f0bebafa35938f09c1c0b0c404b9 | |
parent | ede868b1e6fd5eba22f71dd93e534d3886ec1e20 (diff) | |
download | autoconf-7312c775f1fdce89bddec9488ae139e039752f0f.tar.gz |
* acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
stdlib.h.
From Paul Eggert and Lars Hecking.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | acgeneral.m4 | 6 | ||||
-rw-r--r-- | doc/autoconf.texi | 4 | ||||
-rw-r--r-- | lib/autoconf/general.m4 | 6 |
5 files changed, 23 insertions, 2 deletions
@@ -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> @@ -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) ]) |