Hello,
> EXTRA_PROGRAMS=foo
> [EMAIL PROTECTED]@
> correspoding configure.in:
> if (certain condidtions)
> FOO=foo
> AC_SUBST(FOO)
>
> However, if a platform that application is compiled for uses exe
> extensions, FOO still gets value 'foo' - resulting Makefile is incorrect
the fix is to use Automake conditional instead of @[EMAIL PROTECTED]
configure.ac (or configure.in) shall contain:
AM_CONDITIONAL([WANT_FOO], [certain condidtions])
and Makefile.am:
bin_PROGRAMS =
if WANT_FOO
bin_PROGRAMS += foo
endif
Have a nice day,
Stepan Kasal