*** empty log message ***
[gnulib.git] / m4 / check-decl.m4
index f9202ea..3c18b03 100644 (file)
@@ -1,4 +1,4 @@
-#serial 10
+#serial 13
 
 dnl This is just a wrapper function to encapsulate this kludge.
 dnl Putting it in a separate file like this helps share it between
@@ -43,7 +43,7 @@ AC_DEFUN(jm_CHECK_DECLS,
 #endif
 '
 
-  AC_CHECK_DECLS((
+  AC_CHECK_DECLS([
     free,
     getenv,
     geteuid,
@@ -55,10 +55,11 @@ AC_DEFUN(jm_CHECK_DECLS,
     nanosleep,
     realloc,
     stpcpy,
+    strndup,
     strstr,
     strtoul,
     strtoull,
-    ttyname), , , $headers)
+    ttyname], , , $headers)
 ])
 
 dnl FIXME: when autoconf has support for it.
@@ -67,5 +68,5 @@ AC_DEFUN(_jm_DECL_HEADERS,
 [
   AC_REQUIRE([AC_HEADER_STDC])
   AC_CHECK_HEADERS(memory.h string.h strings.h stdlib.h unistd.h sys/time.h \
-                   utmpx.h)
+                   utmp.h utmpx.h)
 ])