[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automake conditional ..question

From: Stepan Kasal
Subject: Re: Automake conditional ..question
Date: Wed, 16 Feb 2005 15:10:14 +0100
User-agent: Mutt/1.4.1i


On Tue, Feb 15, 2005 at 11:11:39AM -0800, Rashmi Keshava Iyengar wrote:
> I did think about putting in the conditional in but
> even though it can be arranged so that it will be known at configure
> time what build is preferred I do not want to implement it this way
> (essentially this will require us to use two different
> files to generate the makefiles the way things are set up here).

I don't understand why you would need two's.

Why couldn't you solve this by an --enable option?
Then you could do

for dir in build1 build2; do
        (mkdir $dir &&
        cd $dir &&
        eval ../configure \${options_$dir} &&

> I would rather pass in the build type during "make".
> Are there any other options?

Ok, then you cannot use @address@hidden as it is substituted in configure time.
But you can use variables assigned on the command line.
What's the problem with the following:


and running "make" or "make MY_DEFINES=-DUINT_WORD32" to get the two
different builds?

Have a nice day,
        Stepan Kasal

reply via email to

[Prev in Thread] Current Thread [Next in Thread]