Re: Conditional compiling?

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

 



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.

HTH.
Keith.


_______________________________________________
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