Re: EXEEXT and EXTRA_PROGRAMS

2006-01-11 Thread Stepan Kasal
Hello, > if $whatever; then >want_foo = yes > fi > AM_CONDITIONAL([WANT_FOO], [test "$want_foo" = yes]) ... in this case, it can be shortened to AM_CONDITIONAL([WANT_FOO], [$whatever]) > Makefile.am: > if WANT_FOO > FOO = foo > else > FOO = > endif > bin_PROGRAMS = $(FOO) > EXTRA_PROGRAMS =

Re: EXEEXT and EXTRA_PROGRAMS

2006-01-11 Thread Stepan Kasal
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 u

Re: EXEEXT and EXTRA_PROGRAMS

2006-01-11 Thread Ralf Wildenhues
* D M wrote on Wed, Jan 11, 2006 at 01:28:22PM CET: > > I'm not 100% sure if it is the right group to ask but I'll try. > I'm trying to compile program which is built condinally. So my Makefile.am > looks like this: > EXTRA_PROGRAMS=foo > [EMAIL PROTECTED]@ > correspoding configure.in: > i

EXEEXT and EXTRA_PROGRAMS

2006-01-11 Thread D M
Hello. I'm not 100% sure if it is the right group to ask but I'll try. I'm trying to compile program which is built condinally. So my Makefile.am looks like this: EXTRA_PROGRAMS=foo [EMAIL PROTECTED]@ correspoding configure.in: if (certain condidtions) FOO=foo AC_SUBST(F