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