when -Wobsolete is set.
Set it on by default.
Suggested by Klee Dienes.
+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
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.
## -------------- ##
mktmpdir ('ah');
+switch_warning 'obsolete';
parse_args;
# Preach.
\`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.
}
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;
}
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;