* acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to

the new macro...
Reported by Ezra Peisach.
* tests/semantics.m4 (AC_HAVE_FUNCS): New test.
* tests/tools.at (autoupdate): As a benign side effect, updating a
macro that takes no argument produces `UPDATED([])', no longer
`UPDATED()'.  Adjust the test.
This commit is contained in:
Akim Demaille 2000-11-03 11:59:39 +00:00
parent 7e4f776a09
commit 3c3853ced4
6 changed files with 28 additions and 4 deletions

View File

@ -1,3 +1,13 @@
2000-11-03 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to
the new macro...
Reported by Ezra Peisach.
* tests/semantics.m4 (AC_HAVE_FUNCS): New test.
* tests/tools.at (autoupdate): As a benign side effect, updating a
macro that takes no argument produces `UPDATED([])', no longer
`UPDATED()'. Adjust the test.
2000-11-03 Akim Demaille <akim@epita.fr>
* autoconf.m4: Instead of reactivating the macros before reading

1
THANKS
View File

@ -36,6 +36,7 @@ Eli Zaretskii eliz@gnu.org
Erez Zadok ezk@cs.columbia.edu
Eric Backus ericb@lsid.hp.com
Eric Mumpower nocturne@mit.edu
Ezra Peisach epeisach@zif.mit.edu
Felix Lee flee@cygnus.com
Franc,ois Pinard pinard@iro.umontreal.ca
Gary V. Vaughan gvaughan@oranda.demon.co.uk

View File

@ -328,7 +328,7 @@ $2],
# Do not use `defn' since then autoupdate would replace an old macro
# call with the new macro body instead of the new macro call.
define([AU_ALIAS],
[AU_DEFUN([$1], [$2])])
[AU_DEFUN([$1], [$2($][@)])])

View File

@ -328,7 +328,7 @@ $2],
# Do not use `defn' since then autoupdate would replace an old macro
# call with the new macro body instead of the new macro call.
define([AU_ALIAS],
[AU_DEFUN([$1], [$2])])
[AU_DEFUN([$1], [$2($][@)])])

View File

@ -51,7 +51,19 @@ AT_CHECK_MACRO(AC_CHECK_DECLS,
# --------------
# Check that it performs the correct actions:
# Must define HAVE_EXIT, but not HAVE_AUTOCONF_TIXE
AT_CHECK_MACRO(AC_CHECK_FUNCS,
AT_CHECK_MACRO([AC_CHECK_FUNCS],
[AC_CHECK_FUNCS(exit autoconf_tixe)],
[AT_CHECK_DEFINES(
[/* #undef HAVE_AUTOCONF_TIXE */
#define HAVE_EXIT 1
])])
# AC_HAVE_FUNCS
# -------------
# This macro is an obsolete version of AC_CHECK_FUNCS. Running this
# test allows to check that AU_ALIAS'ed macros work properly.
AT_CHECK_MACRO([AC_HAVE_FUNCS],
[AC_CHECK_FUNCS(exit autoconf_tixe)],
[AT_CHECK_DEFINES(
[/* #undef HAVE_AUTOCONF_TIXE */

View File

@ -176,7 +176,7 @@ AC_OUTPUT(Makefile, echo $fubar, fubar=$fubar)
# Checking `autoupdate'.
AT_CHECK([autoupdate --autoconf-dir $top_srcdir -<configure.in], 0,
[[AC_INIT
AC_CANONICAL_TARGET()
AC_CANONICAL_TARGET([])
dnl The doc says 27 is a valid fubar.
fubar=27
AC_CONFIG_FILES([Makefile])
@ -240,6 +240,7 @@ AT_CLEANUP
## ------------------ ##
## autoconf --trace. ##
## ------------------ ##