suffices (such as _LDFLAGS) and prefixes which aren't
recognised if the variable is defined in configure.ac.
Fixes acsubst.test.
2002-03-11 Richard Boulton <richard@tartarus.org>
+ * automake.in (check_typos): Allow variables with reserved
+ suffices (such as _LDFLAGS) and prefixes which aren't
+ recognised if the variable is defined in configure.ac.
+ Fixes acsubst.test.
+
+2002-03-11 Richard Boulton <richard@tartarus.org>
+
* tests/acsubst.test: New test, by Alexandre Duret-Lutz
* tests/acsubst2.test: New test, by Alexandre Duret-Lutz
* tests/Makefile.am (TEST): Added acsubst.test and acsubst2.test
{
macro_error ($varname,
"invalid unused variable name: `$varname'")
- if $varname =~ /$primary$/ && ! $content_seen{$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};
}
}
}