"Alfred M. Szmidt" <[email protected]> writes:

>    > 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.

I don't think everything that works in a Makefile necessarily works in a
Makefile.am, and extensions like ifdef could be one such case.

/Simon

Reply via email to