Mercurial > hg > octave-kai > gnulib-hg
changeset 1131:246a69dfd937
also test for stdlib.h
don't use STDC_HEADERS in ifdef for stdlib.h
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 24 Nov 1997 14:21:16 +0000 |
parents | aa231bb87550 |
children | 3655c3a6dce2 |
files | m4/decl.m4 |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/decl.m4 +++ b/m4/decl.m4 @@ -4,6 +4,7 @@ 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 @@ # include <strings.h> # endif #endif -#ifdef STDC_HEADERS +#ifdef HAVE_STDLIB_H # include <stdlib.h> #endif #ifdef HAVE_UNISTD_H