1# $NetBSD: configure.ac,v 1.5 2002/10/04 22:21:57 thorpej 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# If we don't have <poll.h>, we need to use select(2). 22AC_CHECK_HEADER(poll.h,, AC_DEFINE(USE_SELECT)) 23 24# regcomp() and regexec() are also names of functions in the old V8 25# regexp package. To avoid them, we need to find out who has regfree(). 26 27dnl # Cygwin: We *MUST* look at -lregex *before* the "no libs" condition. 28dnl # Thus AC_CHECK_LIB(regex...) comes first, and AC_SEARCHLIBS next. 29AC_CHECK_LIB(regex, regfree) 30AC_SEARCH_LIBS(regfree, rx posix) 31 32AC_CHECK_FUNCS(setenv strdup strerror strftime vsnprintf) 33 34AC_OUTPUT 35