On Jun 14, 2000, "Braden N. McDaniel" <[EMAIL PROTECTED]> wrote:

> automake: src/Makefile.am: `libjs.la' is already going to be installed in
> `noinst'

This is a limitation of automake.

The solution I've been using is like this:

EXTRA_LTLIBRARIES = libjs.la
lib_LTLIBRARIES = @lib_LIBJS@
noinst_LTLIBRARIES = @noinst_LIBJS@
libjs_la_LDFLAGS = @LDFLAGS@ @LDFLAGS_LIBJS@

Then, configure would set and AC_SUBST lib_LIBJS, noinst_LIBJS and
LDFLAGS_LIBJS as appropriate.  In particular, in the case of
installing the library, you must add the -rpath switch to
LDFLAGS_LIBJS.  I believe that's the main reason why automake doesn't
support conditional installation of ltlibraries.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to