configure.ac revision 1.3
1# $NetBSD: configure.ac,v 1.3 2002/04/24 21:20:08 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 13# Make wants to know what directory to find sh in. 14nb_path_defshelldir=`echo $BSHELL | sed 's,/sh$,,'` 15AC_DEFINE_UNQUOTED(_PATH_DEFSHELLDIR, "$nb_path_defshelldir") 16 17# Make sure we have POSIX regex ability. 18AC_CHECK_HEADER(regex.h,, AC_MSG_ERROR([POSIX regex.h is required])) 19 20# regcomp() and regexec() are also names of functions in the old V8 21# regexp package. To avoid them, we need to find out who has regfree(). 22 23dnl # Cygwin: We *MUST* look at -lregex *before* the "no libs" condition. 24dnl # Thus AC_CHECK_LIB(regex...) comes first, and AC_SEARCHLIBS next. 25AC_CHECK_LIB(regex, regfree) 26AC_SEARCH_LIBS(regfree, rx posix) 27 28AC_CHECK_FUNCS(setenv strdup strerror strftime vsnprintf) 29 30AC_OUTPUT 31