(_jm_DECL_HEADERS): Define new function.
authorJim Meyering <jim@meyering.net>
Sat, 22 Jan 2000 14:22:42 +0000 (14:22 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 22 Jan 2000 14:22:42 +0000 (14:22 +0000)
(jm_CHECK_DECLARATIONS): Require it.

m4/check-decl.m4

index 1e65abb8f0ca50d5988562a255d71ccd05cbce66..09685952c119ad778a4956dc3ed39752e51a0d2e 100644 (file)
@@ -5,6 +5,7 @@ dnl Putting it in a separate file like this helps share it between
 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 @@ AC_DEFUN(jm_CHECK_DECLS,
   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)
+])