This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Conditionally build a shared or convenience library
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Mike Heffner <mheffner at vt dot edu>
- Cc: automake at gnu dot org
- Date: Thu, 12 May 2005 09:43:11 +0200
- Subject: Re: Conditionally build a shared or convenience library
- Organization: Department of Numerical Simulation, University of Bonn
- References: <XFMail.20050511163913.mheffner@vt.edu><20050512073535.GA27207@iam.uni-bonn.de>
I should have looked right away, sorry.
* Ralf Wildenhues wrote on Thu, May 12, 2005 at 09:35:35AM CEST:
> * Mike Heffner wrote on Wed, May 11, 2005 at 10:39:13PM CEST:
> >
> > if FOO_STANDALONE
> > lib_LTLIBRARIES+=libfoo.la
> > else
> > noinst_LTLIBRARIES+=libfoo.la
> > endif
>
> Hmm, this works over here.
Quoting automake/NEWS:
| New in 1.9:
| [...]
| * Change to Libtool support:
| [...]
| - Automake is now able to handle setups where a libtool library is
| conditionally installed in different directories, as in
|
| if COND
| lib_LTLIBRARIES = liba.la
| else
| pkglib_LTLIBRARIES = liba.la
| endif
| liba_la_SOURCES = ...
So please consider using Automake 1.9.x.
Regards,
Ralf