]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* bin/autom4te.in (@m4_warning): New.
authorAkim Demaille <akim@epita.fr>
Wed, 15 Aug 2001 07:49:59 +0000 (07:49 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 15 Aug 2001 07:49:59 +0000 (07:49 +0000)
(&handle_m4): Use it.
* tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
warnings are issued at each run.
* tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
is in the src tree.

ChangeLog
TODO
bin/autom4te.in
tests/Makefile.am
tests/Makefile.in
tests/atspecific.m4
tests/m4sugar.at

index 481b5475659b5c418907d95cb7479b4eef5b1939..cc7514f4c257f5a5e1852e536623c2339c880eb8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2001-08-15  Akim Demaille  <akim@epita.fr>
+
+       * bin/autom4te.in (@m4_warning): New.
+       (&handle_m4): Use it.
+       * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
+       warnings are issued at each run.
+       * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
+       is in the src tree.
+
 2001-08-15  Akim Demaille  <akim@epita.fr>
 
        * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
diff --git a/TODO b/TODO
index fb89605c16454f93c966cc3461206da7bb97cfcb..037f58bb24cbd4e302be93d0158c9a16bdcea381 100644 (file)
--- a/TODO
+++ b/TODO
@@ -20,6 +20,25 @@ should be removed.
 ** AC_CHECK_TOOL...
 Write a test that checks that it honors the values set by the user.
 
+** ifnames
+Rewrite in Perl.  Drop the AWK dependency.  Remove the AWK portability
+tests.  Add ifnames to the Perl sanity checks.
+
+** autom4te and warnings.
+Decide what must be done.
+
+** Automake 1.6
+*** AC_LIBOBJ_DECL
+Decide with the Automake team whether this macro should list only `.c'
+files, or it should include the `.h' too.  For instance the
+AC_FUNC_GNU_GETOPT macro could provide the three files, likewise for
+the macro which allows to choose a regex engine.
+
+*** Auxiliary files
+It is AC_PROG_LIBTOOL that should tell Automake what are the files to
+ship.  We need something similar to AC_LIBOBJ_DECL for all these
+situations.
+
 
 * Later
 
@@ -98,13 +117,6 @@ be opened to user macros, i.e., for instance libtool itself must be
 able to say that AM_PROG_LIBTOOL is now AC_PROG_LIBTOOL, and have
 autoupdate do its job on old configure.ac.
 
-** AC_LIBOBJ_DECL
-Decide with the Automake team whether this macro should list only `.c'
-files, or it should include the `.h' too.  For instance the
-AC_FUNC_GNU_GETOPT macro could provide the three files, likewise for
-the macro which allows to choose a regex engine.
-
-
 * Even later
 
 ** Autoscan macros
index 464edf5e7e260e4c86bd78192be652c0808cb3de..f40b7af1b8a7ef177a4b8320d9bf3b5c09dceb06 100644 (file)
@@ -254,6 +254,9 @@ my %trace;
 my @preselect = ('include', 'm4_pattern_allow', 'm4_pattern_forbid');
 
 my $output = '-';
+
+# Autom4te's default warnings, and the actual list of warnings.
+my @my_warning = ('syntax');
 my @warning;
 
 # M4 include path.
@@ -516,7 +519,8 @@ sub handle_m4 ($@)
   # 2. $WARNINGS, $3 command line options, in that order.
   # Set them in the order expected by the M4 macros: the converse.
   my $m4_warnings =
-    lc join (',', reverse (split (',', ($ENV{'WARNINGS'} || '')),
+    lc join (',', reverse (@my_warning,
+                          split (',', ($ENV{'WARNINGS'} || '')),
                           map { split /,/ } @warning));
 
   # GNU m4 appends when using --error-output.
index f234132c79193fb89ebd175a1f21041496afd9fe..cab09710cd3bd7ddf18777346e284361d60817d0 100644 (file)
@@ -97,7 +97,7 @@ CLEANFILES =                          \
        expr                                    \
        libtool ltconfig ltmain.sh
 
-DISTCLEANFILES = atconfig testsuite
+DISTCLEANFILES = atconfig testsuite testsuite.log
 
 
 ## ------------------ ##
index 95e9acb7b5962e1bfbb2f827476f243b45e249b2..2d9be9d8126817f2f8927b63590beb7fa6cc0111 100644 (file)
@@ -87,7 +87,7 @@ MACRO_FILES = $(top_srcdir)/lib/autoconf/general.m4               $(top_srcdir)/
 CLEANFILES =   debug-*.sh state-* at-* stderr stdout   autom4te.cache                                  script.s4g script.as script                             configure configure.in configure.ac config.status config.cache  config.log config.h.in config.hin config.h      config.guess config.sub install-sh              expr                                            libtool ltconfig ltmain.sh
 
 
-DISTCLEANFILES = atconfig testsuite
+DISTCLEANFILES = atconfig testsuite testsuite.log
 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
 CONFIG_CLEAN_FILES =  atconfig
 DIST_COMMON =  README Makefile.am Makefile.in atconfig.in
index f4d950e99877afe1d3161c7478c310121237bd47..ad0251e80c1742c5be43f5d1380631bc08bf94f8 100644 (file)
@@ -28,7 +28,7 @@ changequote()changequote([, ])include(autotest/general.m4)# -*- Autoconf -*-
 # ----------------------------------------------------------
 m4_define([AT_CHECK_M4SUGAR],
 [AT_CLEANUP_FILES([script.4s script autom4te.cache])dnl
-AT_CHECK([autom4te -I ../lib m4sugar/m4sugar.m4 script.s4g -o script $1],
+AT_CHECK([autom4te -I $top_srcdir/lib m4sugar/m4sugar.m4 script.s4g -o script $1],
          m4_default([$2], [0]), [$3], [$4])])
 
 
@@ -36,7 +36,7 @@ AT_CHECK([autom4te -I ../lib m4sugar/m4sugar.m4 script.s4g -o script $1],
 # -------------------------------------------------------
 m4_define([AT_CHECK_M4SH],
 [AT_CLEANUP_FILES([script.as script autom4te.cache])dnl
-AT_CHECK([autom4te -I ../lib m4sugar/m4sh.m4 script.as -o script $1],
+AT_CHECK([autom4te -I $top_srcdir/lib m4sugar/m4sh.m4 script.as -o script $1],
          m4_default([$2], [0]), [$3], [$4])])
 
 
index 02a0222291e772b730fac6cdf5d9416454566177..7e46d0c90997ba1bea47e08716e901bf7bba5588 100644 (file)
@@ -38,6 +38,9 @@ AT_SETUP([[m4_warn]])
 # commas are not swallowed.  This can easily happen because of
 # m4-listification.
 
+# FIXME: For the time being we use -f to make sure we do issue the
+# warnings.  But maybe autom4te should handle that by itself?
+
 AT_DATA([script.s4g],
 [[m4_warn([foo],  [foo])
 m4_warn([bar],    [bar])
@@ -48,17 +51,17 @@ AT_CHECK_M4SUGAR([-o-], 0, [],
 [script.s4g:3: warning: syntax
 ])
 
-AT_CHECK_M4SUGAR([-o- -Wall], 0, [],
+AT_CHECK_M4SUGAR([-o- -Wall -f], 0, [],
 [script.s4g:1: warning: foo
 script.s4g:2: warning: bar
 script.s4g:3: warning: syntax
 ])
 
-AT_CHECK_M4SUGAR([-o- -Wnone,bar], 0, [],
+AT_CHECK_M4SUGAR([-o- -Wnone,bar -f], 0, [],
 [script.s4g:2: warning: bar
 ])
 
-AT_CHECK_M4SUGAR([-o- -Wnone,bar,error], 1, [],
+AT_CHECK_M4SUGAR([-o- -Wnone,bar,error -f], 1, [],
 [script.s4g:2: error: bar
 script.s4g:2: the top level
 ])