]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* bin/autoheader.in: Issue the "Using auxiliary..." message only
authorAkim Demaille <akim@epita.fr>
Wed, 27 Aug 2003 11:35:08 +0000 (11:35 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 27 Aug 2003 11:35:08 +0000 (11:35 +0000)
when -Wobsolete is set.
Set it on by default.
Suggested by Klee Dienes.

ChangeLog
NEWS
bin/autoheader.in
bin/autoupdate.in

index 5ca29edec763d15fd304b9ec0f456ad575ed0f0e..3d9ba44718638cf5978e8b7c36e904133d7fc7f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-08-27  Akim Demaille  <akim@epita.fr>
+
+       * bin/autoheader.in: Issue the "Using auxiliary..." message only
+       when -Wobsolete is set.
+       Set it on by default.
+       Suggested by Klee Dienes.
+
 2003-08-27  Akim Demaille  <akim@epita.fr>
 
        * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
diff --git a/NEWS b/NEWS
index ca44b27b4b676c837ad3efd079e3297013024c4c..1bc0160d83efa742eb363a258b0aed0b0d37d21c 100644 (file)
--- a/NEWS
+++ b/NEWS
   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 caafa27b15eae106cc5529a42bf164272dbd8369..46faefeddd978b3811325c0b2891f94f1b1035e6 100644 (file)
@@ -126,6 +126,7 @@ sub parse_args ()
 ## -------------- ##
 
 mktmpdir ('ah');
+switch_warning 'obsolete';
 parse_args;
 
 # Preach.
@@ -146,14 +147,14 @@ if ($config_h_top || $config_h_bot || $acconfig_h)
     \`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 @@ $out->close;
     }
   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 e7eb8f82c4aa1e3075053658063f6990c66c6284..f2fea3d55e033616d866552a5c88a4868d985ab5 100644 (file)
@@ -172,9 +172,9 @@ my (%ac_macros, %au_macros);
 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;