Mercurial > hg > octave-lyh > gnulib-hg
changeset 2167:9dd13496a045
(_jm_DECL_HEADERS): Define new function.
(jm_CHECK_DECLARATIONS): Require it.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 22 Jan 2000 14:22:42 +0000 |
parents | 685cc3636431 |
children | 074f42753dff |
files | m4/check-decl.m4 |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/check-decl.m4 +++ b/m4/check-decl.m4 @@ -5,6 +5,7 @@ dnl different packages. AC_DEFUN(jm_CHECK_DECLS, [ + AC_REQUIRE([_jm_DECL_HEADERS]) headers=' #include <stdio.h> #if HAVE_STRING_H @@ -45,3 +46,11 @@ jm_CHECK_DECLARATIONS($headers, free lseek malloc \ memchr realloc stpcpy strstr strtoul strtoull) ]) + +dnl FIXME: when autoconf has support for it. +dnl This is a little helper so we can require these header checks. +AC_DEFUN(_jm_DECL_HEADERS, +[ + AC_REQUIRE([AC_HEADER_STDC]) + AC_CHECK_HEADERS(memory.h string.h strings.h stdlib.h unistd.h) +])