1 dnl Process this file with autoconf to produce a configure script.
2 AC_REVISION([$Id: configure.in,v 1.37 1994/06/04 05:11:12 roland Beta $])
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 psignal \
33 dup2 getcwd sigsetmask getgroups setlinebuf \
34 seteuid setegid setreuid setregid strerror)
35 AC_COMPILE_CHECK(sys_siglist, ,
36 [extern char *sys_siglist[]; puts(*sys_siglist);],
37 AC_DEFINE(HAVE_SYS_SIGLIST))
38 AC_COMPILE_CHECK(_sys_siglist, ,
39 [extern char *_sys_siglist[]; puts(*_sys_siglist);],
40 AC_DEFINE(HAVE__SYS_SIGLIST))
47 dnl Check out the wait reality.
48 AC_HAVE_HEADERS(sys/wait.h) AC_HAVE_FUNCS(waitpid wait3)
49 AC_COMPILE_CHECK(union wait, [#include <sys/types.h>
50 #include <sys/wait.h>],
51 [union wait status; int pid; pid = wait (&status);
53 /* Some POSIXoid systems have both the new-style macros and the old
54 union wait type, and they do not work together. If union wait
55 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
56 if (WEXITSTATUS (status) != 0) pid = -1;
59 /* Make sure union wait works with waitpid. */
60 pid = waitpid (-1, &status, 0);
63 AC_DEFINE(HAVE_UNION_WAIT))
65 AC_SYS_SIGLIST_DECLARED
67 # The presence of the following is not meant to imply
68 # that make necessarily works on those systems.
73 AC_SUBST(REMOTE) REMOTE=stub
74 AC_WITH(customs, [REMOTE=cstms
75 LIBS="$LIBS libcustoms.a"])
77 echo checking for location of SCCS get command
78 if test -f /usr/sccs/get; then
79 SCCS_GET=/usr/sccs/get
80 AC_DEFINE(SCCS_GET, "/usr/sccs/get")
83 AC_DEFINE(SCCS_GET, "get")
85 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
86 if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
87 test -f s.conftest; then
88 # We successfully created an SCCS file.
89 echo checking if SCCS get command understands -G
90 if $SCCS_GET -Gconftoast s.conftest >/dev/null 2>&1 &&
91 test -f conftoast; then
92 AC_DEFINE(SCCS_GET_MINUS_G)
95 rm -f s.conftest conftoast
97 AC_OUTPUT(Makefile build.sh glob/Makefile, [
98 # Makefile uses this timestamp file to know when to remake Makefile,
99 # build.sh, and glob/Makefile.
103 dnl comment-start: "dnl "
105 dnl comment-start-skip: "\\bdnl\\b\\s *"
106 dnl compile-command: "make configure config.h.in"