2 # Process this file with autoconf to produce a configure script.
4 AC_INIT(GNU Autoconf, 2.52, bug-autoconf@gnu.org)
5 AC_CONFIG_SRCDIR(acgeneral.m4)
6 AC_CONFIG_AUX_DIR(config)
7 AM_INIT_AUTOMAKE(autoconf, 2.52)
9 # Initialize the test suite.
11 AC_PATH_PROG(EXPR, expr)
13 # We use a path for GNU m4 so even if users have another m4 first in
14 # their path, the installer can configure with a path that has GNU m4
15 # first and get that path embedded in the installed autoconf and
18 if test x"$ac_cv_prog_gnu_m4" != xyes; then
19 AC_MSG_ERROR([GNU m4 1.4 is required])
21 # This is needed because Automake does not seem to realize there is
22 # a AC-SUBST inside AC-PROG-GNU-M4. Grmph!
25 # `autoconf' and `ifnames' use AWK. And we need decent RE support.
28 if echo xfoo | $AWK '/foo|^bar$/ { print }' | grep xfoo >/dev/null; then :; else
29 AC_MSG_ERROR([the regex engine of $AWK is too broken to be used
30 you might want to install GNU AWK])
33 # Generating man pages.
34 AM_MISSING_PROG(HELP2MAN, help2man)
36 # We use a path for perl so the #! line in autoscan will work.
37 AC_PATH_PROG(PERL, perl, no)
39 AC_SUBST(PERLSCRIPTS)dnl
40 if test "$PERL" != no; then
41 PERLSCRIPTS="autoscan autoupdate"
43 AC_MSG_WARN([autoscan and autoupdate will not be built since perl is not found])
48 # Automake can't see inner AC_SUBSTS (`aclocal' is bypassed), so we tag the
50 AC_SUBST(PACKAGE_NAME)
54 AC_CONFIG_FILES(Makefile m4/Makefile man/Makefile doc/Makefile config/Makefile
55 tests/Makefile tests/atconfig)
59 # Report the state of this version of Autoconf if this is a beta.
60 case AC_PACKAGE_VERSION in
64 You are about to use an experimental version of Autoconf. Be sure to
65 read the relevant mailing lists, most importantly <autoconf@gnu.org>.
67 Below you will find information on the status of this version of Autoconf.
71 sed -n '/^\* Status/,$p' $srcdir/BUGS;;