configure.ac revision 1.4
1#	$NetBSD: configure.ac,v 1.4 2002/04/27 16:36:31 bjh21 Exp $
2#
3# Autoconf definition file for make.
4#
5
6AC_INIT([make], [noversion], [bin-bug-people@netbsd.org])
7AC_CONFIG_FILES(buildmake.sh)
8
9AC_PATH_PROG(BSHELL, sh)
10if test x"$BSHELL" = x; then
11	AC_MSG_ERROR([sh must be somewhere on \$PATH])
12fi
13AC_DEFINE_UNQUOTED(_PATH_BSHELL, "$BSHELL")
14# Make wants to know what directory to find sh in.
15nb_path_defshelldir=`echo $BSHELL | sed 's,/sh$,,'`
16AC_DEFINE_UNQUOTED(_PATH_DEFSHELLDIR, "$nb_path_defshelldir")
17
18# Make sure we have POSIX regex ability.
19AC_CHECK_HEADER(regex.h,, AC_MSG_ERROR([POSIX regex.h is required]))
20
21# regcomp() and regexec() are also names of functions in the old V8
22# regexp package.  To avoid them, we need to find out who has regfree().
23
24dnl # Cygwin: We *MUST* look at -lregex *before* the "no libs" condition.
25dnl # Thus AC_CHECK_LIB(regex...) comes first, and AC_SEARCHLIBS next.
26AC_CHECK_LIB(regex, regfree)
27AC_SEARCH_LIBS(regfree, rx posix)
28
29AC_CHECK_FUNCS(setenv strdup strerror strftime vsnprintf)
30
31AC_OUTPUT
32