From: Paul Eggert Date: Thu, 9 Dec 2004 21:01:37 +0000 (+0000) Subject: * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'. Join X-Git-Tag: AUTOCONF-2.59c~578 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c56722465164697caf63f7f32084aa01783e0051;p=thirdparty%2Fautoconf.git * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'. Join PATH members so as to not prepend an empty element. Move a comment. * Makefile.am (SUBDIRS): Build in `tests' last. * tests/Makefile.am (installcheck-local): Add check-local dependencies. --- diff --git a/ChangeLog b/ChangeLog index bc88f29ec..d527fff4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-12-08 Noah Misch + + * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'. Join + PATH members so as to not prepend an empty element. Move a comment. + * Makefile.am (SUBDIRS): Build in `tests' last. + * tests/Makefile.am (installcheck-local): Add check-local dependencies. + 2004-12-08 Paul Eggert * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles diff --git a/Makefile.am b/Makefile.am index 40da19f0b..8e4081b6e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,9 +20,9 @@ ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA. -# bin/ and tests/ must be run first, as they build the tests executables -# (tests/autom4te etc.), that we happen to use here. -SUBDIRS = bin tests . lib config man doc +# bin/ must be run first, as it builds executables needed for tests. +# autom4te uses autotest.m4f to generate `testsuite', so build tests last. +SUBDIRS = bin . lib config man doc tests ACLOCAL_AMFLAGS = -I config diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index 35524a8a7..1fbecc00f 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -440,29 +440,30 @@ m4_divert_push([PREPARE_TESTS])dnl # For embedded test suites, AUTOTEST_PATH is relative to the top level # of the package. Then expand it into build/src parts, since users # may create executables in both places. -# -# There might be directories that don't exist, but don't redirect -# builtins' (eg., cd) stderr directly: Ultrix's sh hates that. -AUTOTEST_PATH=`echo $AUTOTEST_PATH | tr ':' $PATH_SEPARATOR` +AUTOTEST_PATH=`echo $AUTOTEST_PATH | sed "s,:,$PATH_SEPARATOR,g"` at_path= _AS_PATH_WALK([$AUTOTEST_PATH $PATH], -[case $as_dir in +[test -n "$at_path" && at_path=$at_path$PATH_SEPARATOR +case $as_dir in [[\\/]]* | ?:[[\\/]]* ) - at_path=$at_path$PATH_SEPARATOR$as_dir + at_path=$at_path$as_dir ;; * ) if test -z "$at_top_builddir"; then # Stand-alone test suite. - at_path=$at_path$PATH_SEPARATOR$as_dir + at_path=$at_path$as_dir else # Embedded test suite. - at_path=$at_path$PATH_SEPARATOR$at_top_builddir/$as_dir - at_path=$at_path$PATH_SEPARATOR$at_top_srcdir/$as_dir + at_path=$at_path$at_top_builddir/$as_dir$PATH_SEPARATOR + at_path=$at_path$at_top_srcdir/$as_dir fi ;; esac]) # Now build and simplify PATH. +# +# There might be directories that don't exist, but don't redirect +# builtins' (eg., cd) stderr directly: Ultrix's sh hates that. PATH= _AS_PATH_WALK([$at_path], [as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` diff --git a/tests/Makefile.am b/tests/Makefile.am index e338a7d8a..09e874d96 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -105,7 +105,7 @@ check-local: atconfig atlocal $(TESTSUITE) $(SHELL) $(TESTSUITE) # Run the test suite on the *installed* tree. -installcheck-local: +installcheck-local: atconfig atlocal $(TESTSUITE) $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin