1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(vpath.c) dnl A distinctive file to look for in srcdir.
3 AC_CONFIG_HEADER(config.h)
5 # We want these before the checks, so the checks can modify their values.
6 test -z "$CFLAGS" && CFLAGS=-g AC_SUBST(CFLAGS)
7 test -z "$LDFLAGS" && LDFLAGS=-g AC_SUBST(LDFLAGS)
12 AC_PROG_CPP dnl Later checks need this.
19 AC_UID_T dnl Also does gid_t.
23 AC_HAVE_HEADERS(limits.h sys/param.h fcntl.h string.h memory.h)
25 AC_CONST dnl getopt needs this.
31 AC_HAVE_FUNCS(getdtablesize sys_siglist _sys_siglist psignal \
32 dup2 getcwd sigsetmask getgroups setlinebuf \
40 dnl Check out the wait reality.
41 AC_HAVE_HEADERS(sys/wait.h) AC_HAVE_FUNCS(waitpid wait3)
42 AC_COMPILE_CHECK(union wait, [#include <sys/types.h>
43 #include <sys/wait.h>],
44 [union wait status; int pid; pid = wait (&status);
46 /* Some POSIXoid systems have both the new-style macros and the old
47 union wait type, and they do not work together. If union wait
48 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
49 if (WEXITSTATUS (status) != 0) pid = -1;
52 /* Make sure union wait works with waitpid. */
53 pid = waitpid (-1, &status, 0);
56 AC_DEFINE(HAVE_UNION_WAIT))
58 AC_COMPILE_CHECK(sys_siglist declaration in signal.h,
59 [#include <signal.h>], [char *msg = *(sys_siglist + 1);],
60 AC_DEFINE(SYS_SIGLIST_DECLARED))
62 # The presence of the following is not meant to imply
63 # that make necessarily works on those systems.
67 AC_SUBST(REMOTE) REMOTE=stub
68 AC_WITH(customs, [REMOTE=cstms
69 LIBS="$LIBS libcustoms.a"])
71 echo checking for location of SCCS get command
72 if test -f /usr/sccs/get; then
73 AC_DEFINE(SCCS_GET, "/usr/sccs/get")
75 AC_DEFINE(SCCS_GET, "get")
78 AC_OUTPUT(Makefile build.sh glob/Makefile)
81 dnl comment-start: "dnl "
83 dnl comment-start-skip: "\\bdnl\\b\\s *"
84 dnl compile-command: "make configure config.h.in"