Sender: tim AT picard DOT skynet DOT be Message-ID: <3B6FBFFD.99705625@falconsoft.be> Date: Tue, 07 Aug 2001 12:16:29 +0200 From: Tim Van Holder Organization: Anubex N.V. X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-3 i686) X-Accept-Language: en, nl-BE, nl MIME-Version: 1.0 To: "Peter J. Farley III" , djgpp AT delorie DOT com Subject: Re: automake help needed References: <3b6cd296 DOT 9879890 AT news DOT escape DOT com> <9km37t$o7c$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <3b6f3c7d DOT 1918773 AT news DOT escape DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com "Peter J. Farley III" wrote: > > Hans-Bernhard Broeker wrote: > > >You're looking in the wrong place. You need an _automake_ conditional, > >here, not a Make conditional. And automake only supports 'if', not > >'ifdef'. Make operators 'ifdef' and 'ifeq' are GNU extensions which > >automake doesn't use, in order to stay portable to non-GNU makes. > > > >I.e. you can't use GNU make conditionals in a Makefile.am, I think. > > Thanks, Hans. I was afraid that was the answer. I've read over the > automake conditionals docs, which I think I understand, so I guess > I'll have to convert it to use them. Problem is that they're not functionally equivalent. Automake conditionals represent a configure-time decision; GNU make conditionals are a run-time decision. The latter allows you to change make's behaviour by running make CONDVAR=value but automake conditionals require a reconfigure to make such a change. I just ran a little test and it seems there is a way out: automake requires its conditionals to start in column 0, make doesnt. So if you merely precede your if/else/endif by a single space, automake won't complain and the conditional will end up in the Makefile as intended. -- Tim Van Holder - Anubex N.V. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= This message was posted using plain text. I do not endorse any products or services that may be hyperlinked to this message.