autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFA] Allow WARNING: spam to be disabled by the user.


From: Akim Demaille
Subject: Re: [RFA] Allow WARNING: spam to be disabled by the user.
Date: Wed, 27 Aug 2003 13:37:45 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

 > Wow, this patch is neat!  But I have a few comments though:
 > 1. The plan is more like using the framework developed by the Automake
 >    team.  Do not hesitate using their files, that's on the schedule
 >    (lib/Automake/Channels*).

 > 2. I need you to contact address@hidden so that your (big) patches can
 >    be applied onto Autoconf.

 > Thanks in advance!

Better now than never I guess...  I'm installing the following.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * bin/autoheader.in: Issue the "Using auxiliary..." message only
        when -Wobsolete is set.
        Set it on for a start.
        Suggested by Klee Dienes.

Index: NEWS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/NEWS,v
retrieving revision 1.304
diff -u -u -r1.304 NEWS
--- NEWS 24 Aug 2003 12:05:20 -0000 1.304
+++ NEWS 27 Aug 2003 11:33:25 -0000
@@ -12,6 +12,11 @@
   This became a significant problem since aclocal and automake can
   run autoconf behind the scene.
 
+** autoheader warnings
+  The warnings of autoheader can be turned off, using --warning.
+  For instance, -Wno-obsolete disables the complaints about acconfig.h
+  and other deprecated constructs.
+
 * Major changes in Autoconf 2.57a
 
   Released 2003-06-20 by Akim Demaille.
Index: bin/autoheader.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/autoheader.in,v
retrieving revision 1.135
diff -u -u -r1.135 autoheader.in
--- bin/autoheader.in 21 Aug 2003 17:50:11 -0000 1.135
+++ bin/autoheader.in 27 Aug 2003 11:33:25 -0000
@@ -126,6 +126,7 @@
 ## -------------- ##
 
 mktmpdir ('ah');
+switch_warning 'obsolete';
 parse_args;
 
 # Preach.
@@ -146,14 +147,14 @@
     \`AC_DEFINE_UNQUOTED\' allows to define a template without
     \`acconfig.h\':
 
-      AC_DEFINE([NEED_MAIN], 1,
+      AC_DEFINE([NEED_FUNC_MAIN], 1,
                [Define if a function \`main\' is needed.])
 
     More sophisticated templates can also be produced, see the
     documentation.
 END
     $msg =~ s/^    /WARNING: /gm;
-    print STDERR $msg;
+    msg 'obsolete', $msg;
   }
 
 # Set up autoconf.
@@ -265,10 +266,10 @@
     }
   foreach (sort keys %symbol)
     {
-      print STDERR "$me: missing template: $_\n";
+      msg 'syntax', "warning: missing template: $_";
       if ($suggest_ac_define)
        {
-         print STDERR "Use AC_DEFINE([$_], [], [Description])\n";
+         msg 'syntax',  "Use AC_DEFINE([$_], [], [Description])";
          $suggest_ac_define = 0;
        }
 
Index: bin/autoupdate.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/autoupdate.in,v
retrieving revision 1.47
diff -u -u -r1.47 autoupdate.in
--- bin/autoupdate.in 21 Aug 2003 17:50:11 -0000 1.47
+++ bin/autoupdate.in 27 Aug 2003 11:33:25 -0000
@@ -172,9 +172,9 @@
 sub handle_autoconf_macros ()
 {
   my $macros = new Autom4te::XFile ("$autoconf"
-                            . " --trace AU_DEFUN:'AU:\$f:\$1'"
-                            . " --trace define:'AC:\$f:\$1'"
-                            . " --melt /dev/null |");
+                                   . " --trace AU_DEFUN:'AU:\$f:\$1'"
+                                   . " --trace define:'AC:\$f:\$1'"
+                                   . " --melt /dev/null |");
   while ($_ = $macros->getline)
     {
       chomp;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]