Hi,
I would like to have the same library built as a standalone shared library
in one case, but when the library's source tree is mapped as a subdirectory of
another library, built as a convenience library (static). However, following the
examples of conditional library compilation in the automake manual, I can't seem
to extend them to get the following to work:
lib_LTLIBRARIES=
noinst_LTLIBRARIES=
if FOO_STANDALONE
lib_LTLIBRARIES+=libfoo.la
else
noinst_LTLIBRARIES+=libfoo.la
endif
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?
Thanks,
Mike
--
Mike Heffner <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>