> If you do the following in a Makefile.am: > > | ifdef foo > | bar = frob > | endif > > You get an error like: > > | Makefile.am:3: endif without if
I see. You need to use 'if', not 'ifdef', and the symbol needs to be declared using AM_CONDITIONAL. That doesn't explain why though, which is what I'm interested in. The `if' construct is automakeism and gets expanded during ./configure, whilst ifdef is makeism and is dynamic.