Re: Conditional Library Compilation

2004-02-05 Thread Alexandre Duret-Lutz
>>> "sbd" == Drummonds, Scott B <[EMAIL PROTECTED]> writes: >> That shouldn't matter: $(xxx) are not evaluated when they appear >> on the rhs of a `=', they are recursively expansed later when >> used in a rule. sbd> Are you sure this is right? Yes, but only in normal conditions, when all va

Re: Conditional Library Compilation

2004-02-05 Thread Alexandre Duret-Lutz
>>> "sbd" == Drummonds, Scott B <[EMAIL PROTECTED]> writes: sbd> From: Alexandre Duret-Lutz [mailto:[EMAIL PROTECTED] >> Sorry to insist, but you still haven't answered the most basic >> question: what automake version are you using? sbd> Begging your pardon, but this is a quote from my repl

RE: Conditional Library Compilation

2004-02-05 Thread Bob Friesenhahn
On Thu, 5 Feb 2004, Drummonds, Scott B wrote: > From: Frederik Fouvry [mailto:[EMAIL PROTECTED] > > You can install it on other places than /usr/share or /usr/local > > (forgot which one is the default) with > > But I don't own the large software project that I'm trying to modify. > If I upgrade t

RE: Conditional Library Compilation

2004-02-05 Thread Drummonds, Scott B
From: Frederik Fouvry [mailto:[EMAIL PROTECTED] > You can install it on other places than /usr/share or /usr/local > (forgot which one is the default) with But I don't own the large software project that I'm trying to modify. If I upgrade the version of Automake to provide a feature I need in the

Re: Conditional Library Compilation

2004-02-05 Thread Frederik Fouvry
,-- On Thu, 5 Feb, Scott B. Drummonds wrote: | [...] | > From the above indented output I believe you are running a | > relic. Probably automake 1.4 or older. The last version is 1.8.2, | > and what you do should work with 1.6 or later. | | You are correct that I am running an old version.

RE: Conditional Library Compilation

2004-02-05 Thread Drummonds, Scott B
From: Alexandre Duret-Lutz [mailto:[EMAIL PROTECTED] > Sorry to insist, but you still haven't answered the most basic > question: what automake version are you using? Begging your pardon, but this is a quote from my reply to your message that was sent both to the group and to you directly: > I'm

Re: Conditional Library Compilation

2004-02-05 Thread Alexandre Duret-Lutz
>>> "sbd" == Drummonds, Scott B <[EMAIL PROTECTED]> writes: [...] sbd> But, the Makefile that is generated from that Makefile.am has the above sbd> statements in the following order: sbd> sbd> noinst_LIBRARIES = libNormal.a sbd> ... sbd> libNormal_a_SOURCES = source.cpp sbd> ... sbd> LI

RE: Conditional Library Compilation

2004-02-04 Thread Drummonds, Scott B
From: Alexandre Duret-Lutz [mailto:[EMAIL PROTECTED] > What are the symptoms? (i.e., what "doesn't work" means?) To follow up with even more detail about this, Makefile.am looks like this: noinst_LIBRARIES = libNormal.a if FEATURE noinst_LIBRARIES += libNormalFeature.a endif libNormal_a_SO

Re: Conditional Library Compilation

2004-02-03 Thread Harlan Stenn
Be aware that += does not work with automake conditionals in several/many cases until you get to at least 1.6. H

RE: Conditional Library Compilation

2004-02-03 Thread Drummonds, Scott B
From: Alexandre Duret-Lutz [mailto:[EMAIL PROTECTED] > Which version of Automake are you using? What make implementation? I'm always afraid to answer this question, because our distributed development environment is old and impossible (for me) to update. But, here goes: 1194> /usr/bin/automa

RE: Conditional Library Compilation

2004-02-03 Thread Drummonds, Scott B
From: [EMAIL PROTECTED] > One possibility: > > noinst_LIBRARIES = libfoo.a > libfoo_a_SOURCES = foo.c bar.c > > if FEATURE > noinst_LIBRARIES += libMyLib.a > libMyLIB_a_CPPFLAGS = -DMyLibExtraFlags > libMyLib_a_SOURCES = $(libfoo_a_SOURCES) > endif This seems to suffer from the same problem as

Re: Conditional Library Compilation

2004-02-03 Thread Alexandre Duret-Lutz
>>> "sbd" == Drummonds, Scott B <[EMAIL PROTECTED]> writes: sbd> Hi, everyone, Hi, Which version of Automake are you using? What make implementation? [...] sbd> the following doesn't work: sbd> if FEATURE sbd> EXTRA_LIBS=libMyLib.a sbd> endif sbd> noinst_LIBRARIES = ... $(EXTRA_LIBS)

Re: Conditional Library Compilation

2004-02-03 Thread Ralf Corsepius
On Tue, 2004-02-03 at 18:41, Drummonds, Scott B wrote: > Hi, everyone, > How do I have an additional library built based on a Automake > conditional? One possibility: noinst_LIBRARIES = libfoo.a libfoo_a_SOURCES = foo.c bar.c if FEATURE noinst_LIBRARIES += libMyLib.a libMyLIB_a_CPPFLAGS = -DMyL

Conditional Library Compilation

2004-02-03 Thread Drummonds, Scott B
Hi, everyone, I've been playing around with the conditionals as defined in the documentation but have been unable to achieve one of my build environment goals. I'm hoping someone can help me with this: I want to be able to build an additional library (using the same source as an existing library