From: Alexandre Duret-Lutz Date: Mon, 20 May 2002 20:42:01 +0000 (+0000) Subject: * automake.in (conditional_implies_one_of): Rename as ... X-Git-Tag: Release-1-6b~98 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b31bf974bd3e57cd9fca1a149c8da5287fb7e3de;p=automake.git * automake.in (conditional_implies_one_of): Rename as ... (conditional_implies_any): ... this. * tests/pluseq9.test: Exercise another case with the new `C' variable. Suggested by Raja R Harinath. --- diff --git a/ChangeLog b/ChangeLog index 780a951c..c8dbd754 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-05-20 Alexandre Duret-Lutz + + * automake.in (conditional_implies_one_of): Rename as ... + (conditional_implies_any): ... this. + * tests/pluseq9.test: Exercise another case with the new + `C' variable. + Suggested by Raja R Harinath. + 2002-05-17 Alexandre Duret-Lutz * tests/defs (configure.in): Quote macro arguments. diff --git a/automake.in b/automake.in index f6cb0074..8695d9d7 100755 --- a/automake.in +++ b/automake.in @@ -5391,10 +5391,10 @@ sub conditional_is_redundant ($@) # $BOOLEAN -# &conditional_implies_one_of ($COND, @CONDS) -# ------------------------------------------- -# Returns true iff $COND implies one of the conditions in @CONDS. -sub conditional_implies_one_of ($@) +# &conditional_implies_any ($COND, @CONDS) +# ---------------------------------------- +# Returns true iff $COND implies any of the conditions in @CONDS. +sub conditional_implies_any ($@) { my ($cond, @conds) = @_; @@ -6271,7 +6271,7 @@ sub invert_conditions foreach my $perm (@perm) { push @notconds, $perm - if ! conditional_implies_one_of ($perm, @conds); + if ! conditional_implies_any ($perm, @conds); } return @notconds; } diff --git a/tests/pluseq9.test b/tests/pluseq9.test index 2aed68f2..01ad9b87 100755 --- a/tests/pluseq9.test +++ b/tests/pluseq9.test @@ -12,9 +12,11 @@ EOF cat > Makefile.am << 'END' if COND1 + C = c if COND2 A = a B = aa + C += cc else A = b B = bb