]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Test `autoupdate'.
authorAkim Demaille <akim@epita.fr>
Wed, 9 Feb 2000 18:02:18 +0000 (18:02 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 9 Feb 2000 18:02:18 +0000 (18:02 +0000)
* tests/tools.m4 (AH_DEFUN): Fix the comments.
Quote properly.
(autoupdate): New test.

ChangeLog
tests/tools.m4

index f14c965b4944556cb202a336e6b69de15564002b..579ace29d2ff94ea1adfa014ef2eb38c4ca6c2a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+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.
index d95679f2b8c20ae61511750973a5fed2558ffc7c..c59dddc197dd7fedbd5e7d5c7d1bbd4c772d37fb 100644 (file)
@@ -17,7 +17,7 @@ dnl `configure.in' function properly.
 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
@@ -25,12 +25,10 @@ AC_TATOOINE
 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.  */
 
@@ -42,3 +40,32 @@ AT_CHECK([cat config.hin], 0,
 ])
 
 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