2002-03-29 Tom Tromey <tromey@redhat.com>
+ * automake.in (check_typos): Examine AM_LDFLAGS.
+ Fixes PR automake/311.
+
For PR automake/312:
* lib/am/libtool.am (clean-libtool): Use LTRMS.
* automake.in (handle_single_transform_list): When processing a
# EXTRA_ variables don't contain configure substitutions.
sub check_typos ()
{
+ # It is ok if the user sets this particular variable.
+ &examine_variable ('AM_LDFLAGS');
+
foreach my $varname (keys %var_value)
{
foreach my $primary ('_SOURCES', '_LIBADD', '_LDADD', '_LDFLAGS',
{
macro_error ($varname,
"invalid unused variable name: `$varname'")
- # Note that a configure variable is always legitimate.
- # It is natural to name such variables after the
- # primary, so we explicitly allow it.
- if $varname =~ /$primary$/ && ! $content_seen{$varname}
- && ! exists $configure_vars{$varname};
+ # Note that a configure variable is always legitimate.
+ # It is natural to name such variables after the
+ # primary, so we explicitly allow it.
+ if $varname =~ /$primary$/ && ! $content_seen{$varname}
+ && ! exists $configure_vars{$varname};
}
}
}