1 dnl Process this file with autoconf to produce a configure script.
3 AC_CONFIG_HEADER(config.h)
5 dnl Checks for programs.
10 AC_CHECK_PROG(HAVE_REMSH, remsh, 1, 0)
11 AC_DEFINE_UNQUOTED(HAVE_REMSH, $HAVE_REMSH)
16 AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h unistd.h utime.h grp.h)
17 AC_CHECK_HEADERS(compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h)
18 AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h)
22 AC_CHECK_SIZEOF(short)
33 AC_CHECK_TYPE(ino_t,unsigned)
35 echo $ac_n "checking for errno in errno.h... $ac_c"
36 AC_TRY_COMPILE([#include <errno.h>],[int i = errno],
37 echo yes; AC_DEFINE(HAVE_ERRNO_DECL),
43 AC_CHECK_FUNCS(waitpid strtok pipe getcwd mkdir strdup strerror chown chmod mknod)
44 AC_CHECK_FUNCS(fchmod fstat strchr bcopy bzero readlink link utime utimes)
45 AC_CHECK_FUNCS(memmove getopt_long lchown)
47 echo $ac_n "checking for working fnmatch... $ac_c"
48 AC_TRY_RUN([#include <fnmatch.h>
49 main() { exit(fnmatch("*.o", "x.o", 0) == 0? 0: 1); }],
50 echo yes;AC_DEFINE(HAVE_FNMATCH),