From: Tom Tromey Date: Sat, 30 Mar 2002 00:31:43 +0000 (+0000) Subject: * automake.in (check_typos): Examine AM_LDFLAGS. X-Git-Tag: branchpoint-1-6~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2125bac344a89b7c4bab0a2bbabad6827b6b2996;p=thirdparty%2Fautomake.git * automake.in (check_typos): Examine AM_LDFLAGS. Fixes PR automake/311. --- diff --git a/ChangeLog b/ChangeLog index f954edef7..e0ab11ec7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2002-03-29 Tom Tromey + * 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 diff --git a/automake.in b/automake.in index fce34face..bd60ba19b 100755 --- a/automake.in +++ b/automake.in @@ -3073,6 +3073,9 @@ sub handle_ltlibraries # 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', @@ -3080,11 +3083,11 @@ sub check_typos () { 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}; } } }