RTFM:
The shell CONDITION (suitable for use in a shell `if' statement)
is evaluated when `configure' is run. Note that you must arrange
for _every_ `AM_CONDITIONAL' to be invoked every time `configure'
is run - if `AM_CONDITIONAL' is run conditionally (e.g., in a
shell `if' statement), then the result will confuse automake.
> Perhaps the search for the existence of "AM_CONDITIONAL([XXX]"
> is a bit too weak?
>
> Thanks! - Bruce
Having to ensure that AM_CONDITIONAL is not invoked in conditional
code is a bit of a nuisance, but I suppose the constraint is a consequence
of nuisances of your own. Thank you - Bruce