+2000-08-27 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (am_primary_prefixes): Don't set `valid' for
+ configure variables that don't satisfy the other constraints.
+ Fixes PR automake/68.
+
2000-04-14 Victor V. Vengerov <vvv@oktet.ru>
Fix for PR automake/67.
if ($varname =~ /^(nobase_)?(dist_|nodist_)?(.*)_$primary$/)
{
if (($2 ne '' && ! $can_dist)
- || (! defined $valid{$3}
- && ! &variable_defined ($3 . 'dir')
- # Note that a configure variable is always
- # legitimate. It is natural to name such
- # variables after the primary, so we explicitly
- # allow it.
- && ! defined $configure_vars{$varname}))
- {
- &am_line_error ($varname, "invalid variable \`$varname'");
+ || (! defined $valid{$3} && ! &variable_defined ($3 . 'dir')))
+ {
+ # Note that a configure variable is always legitimate.
+ # It is natural to name such variables after the
+ # primary, so we explicitly allow it.
+ if (! defined $configure_vars{$varname})
+ {
+ &am_line_error ($varname, "invalid variable \`$varname'");
+ }
}
else
{