+2003-12-05 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * aclocal.in (check_acinclude): Output `warning:' in front
+ of warnings.
+ Report from Pavel Roskin.
+
2003-12-04 Alexandre Duret-Lutz <adl@gnu.org>
* TODO: Remove some old entries.
# Check macros in acinclude.m4. If one is not used, warn.
sub check_acinclude ()
{
- local ($key);
-
- foreach $key (keys %map)
+ foreach my $key (keys %map)
{
- next unless $map{$key} eq 'acinclude.m4';
- if (! $macro_seen{$key})
- {
- # FIXME: should print line number of acinclude.m4.
- warn "aclocal: macro `$key' defined in acinclude.m4 but never used\n";
- }
+ # FIXME: should print line number of acinclude.m4.
+ warn ("aclocal: warning: macro `$key' defined in "
+ . "acinclude.m4 but never used\n")
+ if $map{$key} eq 'acinclude.m4' && ! $macro_seen{$key};
}
}
{
if (! defined $1)
{
- print STDERR "$file:$.: underquoted definition of $2\n";
- print STDERR "$file:$.: run info '(automake)Extending aclocal'\n"
- . "or see http://sources.redhat.com/automake/"
+ print STDERR "$file:$.: warning: underquoted definition of $2\n";
+ print STDERR " run info '(automake)Extending aclocal'\n"
+ . " or see http://sources.redhat.com/automake/"
. "automake.html#Extending%20aclocal\n"
unless $underquoted_manual_once;
$underquoted_manual_once = 1;