From: Akim Demaille Date: Mon, 20 Aug 2001 14:45:49 +0000 (+0000) Subject: * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do. X-Git-Tag: AUTOCONF-2.52d~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=268d5eec86b8ecc9d2b0a7987176c8ac335a11f0;p=thirdparty%2Fautoconf.git * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do. * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the test suite lives. Create `atconfig' automagically. Configure atlocal.in if present. * tests/atconfig.in: Remove. * tests/atlocal.in: New. * tests/Makefile.am: Adjust. --- diff --git a/ChangeLog b/ChangeLog index 4dba57e08..4d47b88af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2001-08-20 Akim Demaille + + * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do. + * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the + test suite lives. + Create `atconfig' automagically. + Configure atlocal.in if present. + * tests/atconfig.in: Remove. + * tests/atlocal.in: New. + * tests/Makefile.am: Adjust. + 2001-08-20 Akim Demaille Huh!?!?! There are still some user EOF tags used, which prevents diff --git a/configure.ac b/configure.ac index 7fa788a89..3e4f1ad90 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ AC_CONFIG_AUX_DIR(config) AM_INIT_AUTOMAKE(autoconf, 2.52c) # Initialize the test suite. -AT_CONFIG(../bin) +AT_CONFIG(tests, ../bin) AC_PATH_PROG(EXPR, expr) # We use a path for GNU m4 so even if users have another m4 first in @@ -68,7 +68,7 @@ AC_CONFIG_FILES(Makefile m4/Makefile man/Makefile doc/Makefile config/Makefile lib/m4sugar/Makefile lib/autoconf/Makefile lib/autotest/Makefile bin/Makefile - tests/Makefile tests/atconfig) + tests/Makefile) AC_OUTPUT # Report the state of this version of Autoconf if this is a beta. diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 28b9ecd60..bc2ce7c81 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -4343,10 +4343,7 @@ for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[[^:]]*:,,'` -dnl FIXME: Until Automake uses the new features of config.status, we -dnl should keep this silent. Otherwise, because Automake runs this in -dnl each directory, it quickly becomes annoying. -dnl echo "executing commands of $ac_dest" + AC_MSG_NOTICE([executing $ac_dest commands]) case $ac_dest in AC_LIST_COMMANDS_COMMANDS()dnl esac diff --git a/m4/atconfig.m4 b/m4/atconfig.m4 index 66589565a..811a5c0ea 100644 --- a/m4/atconfig.m4 +++ b/m4/atconfig.m4 @@ -2,7 +2,7 @@ ## Prepare for testing. ## ## ----------------------## -#serial 4 +#serial 5 # Copyright 2000, 2001 Free Software Foundation, Inc. # @@ -21,8 +21,8 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. -# AT_CONFIG([AUTOTEST-PATH = .]) -# ------------------------------ +# AT_CONFIG(TEST-DIRECTORY, [AUTOTEST-PATH = .]) +# ---------------------------------------------- # Configure the test suite. # # AUTOTEST-PATH must help the test suite to find the executables, i.e., @@ -30,4 +30,43 @@ # pass `../src'. If there are also executables in the source tree, use # `../src:$top_srcdir/src'. AC_DEFUN([AT_CONFIG], -[AC_SUBST([AUTOTEST_PATH], [m4_default([$1], [.])])]) +[AC_CONFIG_COMMANDS([$1/atconfig], +[cat >$1/atconfig <