2003-07-27 00:17:31 +04:00
|
|
|
# $NetBSD: configure.ac,v 1.6 2003/07/26 20:24:01 salo Exp $
|
2002-01-15 22:15:47 +03:00
|
|
|
#
|
|
|
|
# Autoconf definition file for make.
|
|
|
|
#
|
|
|
|
|
2003-07-27 00:17:31 +04:00
|
|
|
AC_INIT([make], [noversion], [bin-bug-people@NetBSD.org])
|
2002-01-15 22:15:47 +03:00
|
|
|
AC_CONFIG_FILES(buildmake.sh)
|
|
|
|
|
2002-04-25 01:20:08 +04:00
|
|
|
AC_PATH_PROG(BSHELL, sh)
|
|
|
|
if test x"$BSHELL" = x; then
|
|
|
|
AC_MSG_ERROR([sh must be somewhere on \$PATH])
|
|
|
|
fi
|
2002-04-27 20:36:30 +04:00
|
|
|
AC_DEFINE_UNQUOTED(_PATH_BSHELL, "$BSHELL")
|
2002-04-25 01:20:08 +04:00
|
|
|
# Make wants to know what directory to find sh in.
|
|
|
|
nb_path_defshelldir=`echo $BSHELL | sed 's,/sh$,,'`
|
|
|
|
AC_DEFINE_UNQUOTED(_PATH_DEFSHELLDIR, "$nb_path_defshelldir")
|
|
|
|
|
2002-01-15 22:15:47 +03:00
|
|
|
# Make sure we have POSIX regex ability.
|
|
|
|
AC_CHECK_HEADER(regex.h,, AC_MSG_ERROR([POSIX regex.h is required]))
|
|
|
|
|
2002-10-05 02:21:57 +04:00
|
|
|
# If we don't have <poll.h>, we need to use select(2).
|
|
|
|
AC_CHECK_HEADER(poll.h,, AC_DEFINE(USE_SELECT))
|
|
|
|
|
2002-01-15 22:15:47 +03:00
|
|
|
# regcomp() and regexec() are also names of functions in the old V8
|
|
|
|
# regexp package. To avoid them, we need to find out who has regfree().
|
|
|
|
|
|
|
|
dnl # Cygwin: We *MUST* look at -lregex *before* the "no libs" condition.
|
|
|
|
dnl # Thus AC_CHECK_LIB(regex...) comes first, and AC_SEARCHLIBS next.
|
|
|
|
AC_CHECK_LIB(regex, regfree)
|
|
|
|
AC_SEARCH_LIBS(regfree, rx posix)
|
|
|
|
|
2002-01-25 20:51:31 +03:00
|
|
|
AC_CHECK_FUNCS(setenv strdup strerror strftime vsnprintf)
|
|
|
|
|
2002-01-15 22:15:47 +03:00
|
|
|
AC_OUTPUT
|