Re: Conditional compiling?

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

 



On Wed, 2005-12-21 at 09:27 +0000, Keith MARSHALL wrote:
> Ralf Corsepius wrote, quoting Daniel Pekelharing:
> >> Or is there someway I can tell autoconf to just ignore them?
> > No, because autoconf isn't involved into compilation, that would
> > be your makefiles, i.e. you will have to find a way inside of your
> > makefiles if using pure autoconf.
> 
> I do this, without using automake, by using Makefile.in constructs
> such as:
> 
>    all: regular-stuff @conditional-stuff@
>         :
> 
>    regular-stuff:
>         :
> 
>    conditional-stuff:
>         :
> 
> then use an autoconf substitution for `@conditional-stuff@', such
> that it is blank, when `conditional-stuff' is not required, and
> names the `conditional-stuff' target when it is.  Obviously, this
> can be extended to multiple conditionals, ad-infinitum.
Congratulations! You are about to reinvented AM_CONDITIONAL. ;)

That's more or less how AM_CONDITIONAL internally works.

Ralf




_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux