From: Eric Blake Date: Wed, 7 Mar 2012 17:40:11 +0000 (-0700) Subject: tests: ignore ksh -n warnings X-Git-Tag: v2.69~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=220f8c240df11dcf0829d86d33e3f354fe87e0ad;p=thirdparty%2Fautoconf.git tests: ignore ksh -n warnings Recent ksh is noisy: $ ksh -nc '``'; echo $? ksh: warning: line 1: `...` obsolete, use $(...) 0 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Ignore noisy ksh on. Reported by Martin Zaun. Signed-off-by: Eric Blake --- diff --git a/tests/local.at b/tests/local.at index eb01cc0a..66027e83 100644 --- a/tests/local.at +++ b/tests/local.at @@ -47,10 +47,11 @@ AT_CHECK([$at_diff "$1" "$2"]) # AT_CHECK_SHELL_SYNTAX(PROGRAM) # ------------------------------ # If the shell handles `-n' well, use it to check the syntax of PROGRAM; -# otherwise, do nothing. +# otherwise, do nothing. ksh93 -n also spits outs loads of warnings +# about older constructs, but we don't care about the warnings. m4_define([AT_CHECK_SHELL_SYNTAX], [AT_SKIP_IF([test "$ac_cv_sh_n_works" != yes]) -AT_CHECK([/bin/sh -n $1])]) +AT_CHECK([/bin/sh -n $1], [], [], [ignore])]) m4_define([AT_CHECK_PERL_SYNTAX], [AT_CHECK([autom4te_perllibdir=$abs_top_srcdir/lib $PERL -c "$abs_top_builddir"/bin/$1],