This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
libfoo.la is already going to be installed in lib.
- From: Harlan Stenn <Harlan dot Stenn at pfcs dot com>
- To: automake at gnu dot org, libtool at gnu dot org
- Date: Fri, 20 Sep 2002 21:19:39 -0400
- Subject: libfoo.la is already going to be installed in lib.
This appears to be aproblem with libtool+automake; if I use a static library
(no libtool) I don't see this problem.
Is there a workaround/bugfix? This problem means that autoreconf bails with
an error...
(Yes, I've tried a couple of other choices, like using a variable in the
conditionals and setting lib_LTLIBRARIES = $(foo).)
--Makefile.am:
AUTOMAKE_OPTIONS = foreign
if FOO_A
lib_LTLIBRARIES=libfoo.la
endif
if FOO_B
lib_LTLIBRARIES=libfoo.la
endif
libfoo_la_SOURCES = foo.c
--configure.ac:
AC_INIT
AC_CONFIG_SRCDIR([Makefile.am])
AM_INIT_AUTOMAKE(foo, 1.0)
AC_PROG_CC
AC_PROG_LIBTOOL
FOO=a
AM_CONDITIONAL(FOO_A, test x"$FOO" = xa)
AM_CONDITIONAL(FOO_B, test x"$FOO" = xb)
AC_CONFIG_FILES(Makefile)
AC_OUTPUT