+2000-02-09 Akim Demaille <akim@epita.fr>
+
+ Clean up `make clean'.
+
+ * doc/Makefile.am (CLEANFILES): Added autoconf.tmp.
+ * Makefile.am (CLEANFILES): Added autoupdate.m4f.
+ * tests/torture.m4: Rm dummy and dummy.in.
+
+2000-02-09 Akim Demaille <akim@epita.fr>
+
+ Test `autoupdate'.
+
+ * tests/tools.m4 (AH_DEFUN): Fix the comments.
+ Quote properly.
+ (autoupdate): New test.
+
2000-02-09 Akim Demaille <akim@epita.fr>
AU_ glue code for AC_OUTPUT with arguments.
AT_SETUP(AH_DEFUN)
AT_DATA(configure.in,
-[AC_INCLUDE(actest.m4)
+[[AC_INCLUDE(actest.m4)
AH_DEFUN(AC_ANAKIN,
[AH_TEMPLATE(Anakin, [The future Darth Vador?])])
AC_INIT
AC_ANAKIN
AC_CONFIG_HEADERS(config.h:config.hin)
AC_OUTPUT
-])
+]])
-# The user must know the macro is obsolete.
+# Checking `autoheader'.
AT_CHECK([../autoheader -m .. -l $at_srcdir], 0)
-
-# And autoupdate should update it properly.
AT_CHECK([cat config.hin], 0,
[/* config.hin. Generated automatically from configure.in by autoheader. */
])
AT_CLEANUP(config.hin)
+
+
+
+dnl autoupdate
+dnl ----------
+dnl
+dnl Check that AC_LINK_FILES and AC_OUTPUT are properly updated.
+AT_SETUP(autoupdate)
+
+AT_DATA(configure.in,
+[[AC_INIT
+AC_LINK_FILES(from1 from2, to1 to2)
+dnl The doc says 27 is a valid fubar.
+fubar=27
+AC_OUTPUT(Makefile, echo $fubar, fubar=$fubar)
+]])
+
+# Checking `autoupdate'.
+AT_CHECK([../autoupdate -m .. -l $at_srcdir -<configure.in], 0,
+[[AC_INIT
+AC_CONFIG_LINKS(to1:from1)AC_CONFIG_LINKS(to2:from2)
+dnl The doc says 27 is a valid fubar.
+fubar=27
+AC_CONFIG_FILES(Makefile)
+AC_CONFIG_COMMANDS(default, [echo $fubar], [fubar=$fubar])
+AC_OUTPUT
+]], ignore)
+
+AT_CLEANUP