[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditionally build a shared or convenience library
From: |
Ralf Wildenhues |
Subject: |
Re: Conditionally build a shared or convenience library |
Date: |
Thu, 12 May 2005 09:35:35 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi Mike,
* Mike Heffner wrote on Wed, May 11, 2005 at 10:39:13PM CEST:
>
> lib_LTLIBRARIES=
> noinst_LTLIBRARIES=
>
> if FOO_STANDALONE
> lib_LTLIBRARIES+=libfoo.la
> else
> noinst_LTLIBRARIES+=libfoo.la
> endif
Hmm, this works over here.
> Automake reports this as an error:
>
> foo/Makefile.am:21: `libfoo.la' is already going to be installed in `lib'
> foo/Makefile.am:19: `libfoo.la' previously declared here
> >
> What is the correct way of doing this conditional library building?
Which Automake version do you use? Do you have
AM_CONDITIONAL([FOO_STANDALONE], ...)
in configure.ac?
Regards,
Ralf