bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8718: error when using nested conditionals


From: Bruno Haible
Subject: bug#8718: error when using nested conditionals
Date: Fri, 17 Jun 2011 11:56:09 +0200
User-agent: KMail/1.9.9

Hi Ralf,

> More danger ahead:
> 
> if $foo; then result=ok; else result=bad; fi
> AM_CONDITIONAL([COND1], [test $result = ok])
> if $bar; then result=ok; else result=bad; fi
> AM_CONDITIONAL([COND2], [test $result = ok])
> 
> I've seen such code in third party projects, it will break if you delay
> the AM_CONDITIONAL evaluation.

Thanks for the heads-up. The code I posted does not delay the evaluation of
the condition; it only delays the invocation of AM_CONDITIONAL. So it will
work fine in this situation.

Bruno
-- 
In memoriam The victims of the East German uprising 
<http://en.wikipedia.org/wiki/Uprising_of_1953_in_East_Germany>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]