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])
19 #include <sys/types.h>
20 #if TIME_WITH_SYS_TIME
21 # include <sys/time.h>
25 # include <sys/time.h>
65 ttyname], , , $headers)
68 dnl FIXME: when autoconf has support for it.
69 dnl This is a little helper so we can require these header checks.
70 AC_DEFUN([_jm_DECL_HEADERS],
72 AC_REQUIRE([AC_HEADER_STDC])
73 AC_CHECK_HEADERS(grp.h memory.h pwd.h string.h strings.h stdlib.h \
74 unistd.h sys/time.h utmp.h utmpx.h)