Hello again, * Ralf Wildenhues wrote on Mon, Oct 24, 2005 at 05:56:41PM CEST: > * Stepan Kasal wrote on Thu, Oct 20, 2005 at 10:19:24AM CEST: > > On Fri, Sep 09, 2005 at 02:09:01PM +0200, Ralf Wildenhues wrote: > > > Second: Autoconf bug: AU_ALIAS mumbles with the number of arguments: > > > > A test has to be written, to make sure that "AC_STDC_HEADERS" is > > indeed autoupdated to "AC_HEADER_STDC", and not to "AC_HEADER_STDC([])". > > > We should autotest this with AC_STDC_HEADERS. > > Below is a test suggestion that includes above checking and > AC_HEADER_STDC.
And here is an updated test, including a couple of suggestions Stepan made off-list. Also, a bug fix for this test: | 10: tools.at:497 autoupdate which fails otherwise, when Stepan's fix is applied. It would be useful to apply this patch along with it. Cheers, Ralf * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS `$#' bug. (autoupdate): Updated to match AU_ALIAS fix. Index: tests/tools.at =================================================================== RCS file: /cvsroot/autoconf/autoconf/tests/tools.at,v retrieving revision 1.78 diff -u -r1.78 tools.at --- tests/tools.at 25 Jul 2005 18:10:25 -0000 1.78 +++ tests/tools.at 5 Nov 2005 06:38:31 -0000 @@ -506,7 +506,7 @@ AT_DATA([expout], [[AC_INIT([Test],[1.0]) -AC_CANONICAL_TARGET([]) +AC_CANONICAL_TARGET # The doc says 27 is a valid fubar. fubar=27 AC_CONFIG_FILES([Makefile]) @@ -568,5 +568,29 @@ AT_CHECK([echo "AC_PREREQ(999.99)" | autoupdate -], 63, [], [ignore]) + +AT_CLEANUP + + +# autoupdating AU_ALIAS +# --------------------- +AT_SETUP([autoupdating AU_ALIAS]) + +AT_DATA([configure.ac], +[[AC_INIT +AC_DEFUN([FOO], [$#]) +AU_ALIAS([BAZ],[FOO]) +test "FOO:FOO():FOO(x) BAZ:BAZ():BAZ(x)" = "0:1:1 0:1:1" || exit 1 +AC_PROG_CC +AC_STDC_HEADERS +AC_OUTPUT +]]) + +# Checking `autoupdate'. +AT_CHECK_AUTOUPDATE +AT_CHECK_AUTOCONF +AT_CHECK_CONFIGURE +AT_CHECK([grep 'AC_HEADER_STDC(' configure.ac], 1, [ignore], [ignore]) +AT_CHECK([grep 'AC_HEADER_STDC' configure.ac], 0, [ignore], [ignore]) AT_CLEANUP