1 dnl Process this file with autoconf to produce a configure script.
2 AC_REVISION([$Id: configure.in,v 1.35 1994/04/21 02:41:56 roland Alpha $])
3 AC_INIT(vpath.c) dnl A distinctive file to look for in srcdir.
4 AC_CONFIG_HEADER(config.h)
6 # We want these before the checks, so the checks can modify their values.
7 test -z "$CFLAGS" && CFLAGS=-g AC_SUBST(CFLAGS)
8 test -z "$LDFLAGS" && LDFLAGS=-g AC_SUBST(LDFLAGS)
14 AC_PROG_CPP dnl Later checks need this.
20 AC_UID_T dnl Also does gid_t.
24 AC_HAVE_HEADERS(unistd.h limits.h sys/param.h fcntl.h string.h memory.h \
27 AC_CONST dnl getopt needs this.
32 AC_HAVE_FUNCS(getdtablesize sys_siglist _sys_siglist psignal \
33 dup2 getcwd sigsetmask getgroups setlinebuf \
34 seteuid setegid setreuid setregid strerror)
41 dnl Check out the wait reality.
42 AC_HAVE_HEADERS(sys/wait.h) AC_HAVE_FUNCS(waitpid wait3)
43 AC_COMPILE_CHECK(union wait, [#include <sys/types.h>
44 #include <sys/wait.h>],
45 [union wait status; int pid; pid = wait (&status);
47 /* Some POSIXoid systems have both the new-style macros and the old
48 union wait type, and they do not work together. If union wait
49 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
50 if (WEXITSTATUS (status) != 0) pid = -1;
53 /* Make sure union wait works with waitpid. */
54 pid = waitpid (-1, &status, 0);
57 AC_DEFINE(HAVE_UNION_WAIT))
59 AC_SYS_SIGLIST_DECLARED
61 # The presence of the following is not meant to imply
62 # 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 SCCS_GET=/usr/sccs/get
74 AC_DEFINE(SCCS_GET, "/usr/sccs/get")
77 AC_DEFINE(SCCS_GET, "get")
79 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
80 if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
81 test -f s.conftest; then
82 # We successfully created an SCCS file.
83 echo checking if SCCS get command understands -G
84 if $SCCS_GET s.conftest -Gconftoast >/dev/null 2>&1 &&
85 test -f conftoast; then
86 AC_DEFINE(SCCS_GET_MINUS_G)
89 rm -f s.conftest conftoast
91 AC_OUTPUT(Makefile build.sh glob/Makefile, [
92 # Makefile uses this timestamp file to know when to remake Makefile,
93 # build.sh, and glob/Makefile.
97 dnl comment-start: "dnl "
99 dnl comment-start-skip: "\\bdnl\\b\\s *"
100 dnl compile-command: "make configure config.h.in"