automake
[Top][All Lists]
Advanced

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

Re: choosing a source file based on configure


From: Tom Tromey
Subject: Re: choosing a source file based on configure
Date: 17 Dec 2000 16:30:13 -0700

>>>>> "Bryan" == Bryan VanDeVen <address@hidden> writes:

Bryan> what is the best way to use a different source file based on
Bryan> the outcome of configure? We would like to normailly produce a
Bryan> stubbed out version of a lib function, and only use the real
Bryan> version when building inside the closed space

The best way is to use an automake conditional and then conditionally
include the source file in your _SOURCES variable.

Bryan> liblfbl_la_SOURCES =    bit_unpack.c \
Bryan>                         fixpos.c \
Bryan>                         getcentr.c \
Bryan>                         $(@LFBLCODE@) \
Bryan>                         getlfbla.c \
Bryan>                         getlfbld.c 

This won't work.  A _SOURCES variable must have static contents.

Tom



reply via email to

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