1 dnl Process this file with autoconf to produce a configure script.
3 AC_CONFIG_HEADER(config.h)
5 dnl Checks for programs.
14 AC_CHECK_HEADERS(sys/fcntl.h fcntl.h sys/time.h unistd.h utime.h grp.h)
15 AC_CHECK_HEADERS(compat.h sys/param.h ctype.h sys/wait.h)
19 AC_CHECK_SIZEOF(short)
31 echo -n "checking for errno in errno.h... "
32 AC_TRY_COMPILE([#include <errno.h>],[int i = errno],
33 echo yes; AC_DEFINE(HAVE_ERRNO_DECL),
39 AC_CHECK_FUNCS(waitpid strtok pipe getcwd mkdir strdup strerror chown chmod mknod)
40 AC_CHECK_FUNCS(fchmod fstat strchr bcopy bzero readlink utime utimes getopt_long)
42 echo -n "checking for working fnmatch... "
43 AC_TRY_RUN([#include <fnmatch.h>
44 main() { exit(fnmatch("*.o", "x.o", 0) == 0? 0: 1); }],
45 echo yes;AC_DEFINE(HAVE_FNMATCH),