automake
[Top][All Lists]
Advanced

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

Re: Emulating GNU Make conditionals, or: Is there a nice way to automati


From: Dalibor Topic
Subject: Re: Emulating GNU Make conditionals, or: Is there a nice way to automatically set CFLAGS when make is run?
Date: Wed, 10 Dec 2003 17:16:04 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312

Hi Bob,

thanks for the quick reply.

Bob Friesenhahn wrote:
You can use Automake conditionals.  These are configure-time
conditionals rather than make-time conditionals.

You could add --with-check and --with-prof options to your configure
script which enables these conditionals.

Done. But shouldn't it be called --enable instead of --with? I thought --with was for external packages, and --enable was for features.

If your package preserves the capability to build outside of the
source tree, then your users can simply maintain seperate builds with
the desired options enabled.

Yeah, but the problem is that it makes some things, like doing a quick debugging or profiling build, be a little more trouble than before. Since you need to either keep the separate build around (and you may not need it all the time), and remeber to reconfigure when a part of the build machinery has changed, or you have to re-run configure each time, which is a bit of a waste of time, if all you want to have is a some CFLAGS mixing.

cheers,
dalibor topic





reply via email to

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