autoconf
[Top][All Lists]
Advanced

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

Re: Conditional compiling?


From: Ralf Wildenhues
Subject: Re: Conditional compiling?
Date: Wed, 21 Dec 2005 10:16:16 +0100
User-agent: Mutt/1.5.11

Hi Ralf, Daniel,

* Ralf Corsepius wrote on Wed, Dec 21, 2005 at 08:43:00AM CET:
> On Wed, 2005-12-21 at 09:12 +0200, Daniel Pekelharing wrote:
> > 
> > I have some parts of my app which I want to be optional, so if the user
> > doesn't have library x then just compile without some features.
> > 
> > I figure with single isolated calls I should just surround them with
> > #ifdef statements, but I have also a couple of entire c files dedicated
> > to them...
> > Should I just #ifdef the entire c file?
> That's one possibility.

But not strictly portable -- ISO C forbids empty translation units,
so add at least a dummy.

The automake conditional method is fine, of course.

Cheers,
Ralf




reply via email to

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