----- Original Message -----
From: "Lars J. Aas" <[EMAIL PROTECTED]>
To: "Robert Collins" <[EMAIL PROTECTED]>
Sent: Sunday, April 01, 2001 1:20 AM
Subject: Re: Fw: 2nd possibly silly question: XTRA_foo_SOURCES
> On Sun, Apr 01, 2001 at 12:19:44AM +1000, Robert Collins wrote:
> : I hadn't tried those - thanks.
> :
> : And yes, I did double check when I saw that!
>
> Try making an AM_CONDITIONAL in configure.in then, e.g.
>
> AM_CONDITIONAL(USE_DNSSOLUTION1, true)
>
> and write this in Makefile.am:
>
> if USE_DNSSOLUTION1
> DNSSOURCE = dns.c
> else
> DNSSOURCE = ...
> endif
>
> ..._SOURCES = ... ... $(DNSSOURCE) ...
>
> I know this works because I use it all the time. If it doesn't,
there's
> something very strange about the project.
>
> Lars J
>
Thanks - it works. Mind you a 6000 line Makefile is a little excessive
(there are 6 such AM_CONDITIONALS in use now I've put them all in
place).
Most of the lines are truely irrelevant as well - such as:
@ENABLE_HTCP_TRUE@@ENABLE_UNLINKD_TRUE@@MAKE_LEAKFINDER_TRUE@@USE_DELAY_
POOLS_TRUE@@USE_DN
SSERVER_TRUE@@USE_SNMP_FALSE@ HttpHeaderTools.$(OBJEXT) \
httpheadertools has no dependencies on the possible values of any of the
conditionals.
It would be a lot easier if I could just do what the doco implied, and
can be done with the _PROGRAMS target...
Or maybe I'm hitting a bug?
Rob