diff options
author | Jim Meyering <jim@meyering.net> | 1997-11-24 14:21:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-11-24 14:21:16 +0000 |
commit | 04712f52adb4f4124d430d1647b3e84801b1ed90 (patch) | |
tree | fda95d16acda5f1480a80f45e26769abcf9ceddd /m4 | |
parent | c781b840f2c38e914bfc9d073704c92427bd8800 (diff) | |
download | coreutils-04712f52adb4f4124d430d1647b3e84801b1ed90.tar.xz |
also test for stdlib.h
don't use STDC_HEADERS in ifdef for stdlib.h
Diffstat (limited to 'm4')
-rw-r--r-- | m4/decl.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/decl.m4 b/m4/decl.m4 index bbe759345..dcf92c52f 100644 --- a/m4/decl.m4 +++ b/m4/decl.m4 @@ -4,6 +4,7 @@ AC_DEFUN(jm_CHECK_DECLARATION, test -z "$ac_cv_header_memory_h" && AC_CHECK_HEADERS(memory.h) test -z "$ac_cv_header_string_h" && AC_CHECK_HEADERS(string.h) test -z "$ac_cv_header_strings_h" && AC_CHECK_HEADERS(strings.h) + test -z "$ac_cv_header_stdlib_h" && AC_CHECK_HEADERS(stdlib.h) test -z "$ac_cv_header_unistd_h" && AC_CHECK_HEADERS(unistd.h) AC_MSG_CHECKING([whether $1 is declared]) AC_CACHE_VAL(jm_cv_func_decl_$1, @@ -19,7 +20,7 @@ AC_DEFUN(jm_CHECK_DECLARATION, # include <strings.h> # endif #endif -#ifdef STDC_HEADERS +#ifdef HAVE_STDLIB_H # include <stdlib.h> #endif #ifdef HAVE_UNISTD_H |