]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/tools.m4 (undefined macros): New test.
authorAkim Demaille <akim@epita.fr>
Mon, 7 Aug 2000 12:07:43 +0000 (12:07 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 7 Aug 2000 12:07:43 +0000 (12:07 +0000)
ChangeLog
tests/tools.m4

index 9f610772bf67046fe1299322cc1c2dce66563fcb..30b3d79b19f8e9ec471a653e660c6c3ba6b3fd79 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-08-07  Akim Demaille  <akim@epita.fr>
+
+       * tests/tools.m4 (undefined macros): New test.
+
 2000-08-07  Akim Demaille  <akim@epita.fr>
 
        * autoconf.sh (finalize.awk): New subtool, eved from the previous
index 73a4b9ce8fb7fb853e2b76c2981d762340a9aab7..3889f74b1c6909c65c6908dcf2460c367ab52c41 100644 (file)
@@ -239,3 +239,26 @@ AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir -t TRACE2:'${)===(}@'], 0,
 ]])
 
 AT_CLEANUP
+
+
+
+
+## ----------------------------------------------- ##
+## autoconf's ability to catch unexpanded macros.  ##
+## ----------------------------------------------- ##
+
+AT_SETUP(unexpanded macros)
+
+AT_DATA([configure.in],
+[[AC_PLAIN_SCRIPT()dnl
+AC_THIS_IS_PROBABLY_NOT_DEFINED
+# AC_THIS_IS_A_COMMENT so just shut up.
+It would be very bad if Autoconf forgot to expand [AC_]OUTPUT!
+]])
+
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [],
+[[configure.in:2: warning: undefined macro: AC_THIS_IS_PROBABLY_NOT_DEFINED
+configure:3: warning: undefined macro: AC_OUTPUT
+]])
+
+AT_CLEANUP(configure)