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