From 4450e9fb5def7edfc921c0c241ca358055d5fc95 Mon Sep 17 00:00:00 2001 From: Richard Boulton Date: Mon, 11 Mar 2002 17:24:12 +0000 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ automake.in | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 739455b8..97adeecb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2002-03-11 Richard Boulton + + * 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 * tests/acsubst.test: New test, by Alexandre Duret-Lutz diff --git a/automake.in b/automake.in index 92a2ba75..27b5f1b4 100755 --- a/automake.in +++ b/automake.in @@ -3018,7 +3018,11 @@ sub check_typos () { 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}; } } } -- 2.43.5