3 dnl This is just a wrapper function to encapsulate this kludge.
4 dnl Putting it in a separate file like this helps share it between
5 dnl different packages.
6 AC_DEFUN([jm_CHECK_DECLS],
8 AC_REQUIRE([_jm_DECL_HEADERS])
9 AC_REQUIRE([AC_HEADER_TIME])
13 # if !STDC_HEADERS && HAVE_MEMORY_H
29 #include <sys/types.h>
30 #if TIME_WITH_SYS_TIME
31 # include <sys/time.h>
35 # include <sys/time.h>
75 ttyname], , , $headers)
78 dnl FIXME: when autoconf has support for it.
79 dnl This is a little helper so we can require these header checks.
80 AC_DEFUN([_jm_DECL_HEADERS],
82 AC_REQUIRE([AC_HEADER_STDC])
83 AC_CHECK_HEADERS(grp.h memory.h pwd.h string.h strings.h stdlib.h \
84 unistd.h sys/time.h utmp.h utmpx.h)