This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Conditionals in Makefile.am
- From: Filip Kaliński <filon at pld dot org dot pl>
- To: automake at gnu dot org
- Date: Tue, 11 Jun 2002 18:14:00 +0200
- Subject: Conditionals in Makefile.am
I have AM_CONDITIONAL(ENABLE_BAR, ... ) in configure.in and I want to have
if ENABLE_BAR
lib_LTLIBARAIES=libfoo.la
libfoo_la_LDADD=-lbaz
...
else
noninst_LTILIBRARIES=libfoo.la
...
endif
in Makefile.am, but it doesn't work, automake wants to define both
of ..._LTLIBRARIES and screams that it is alredy defined (while parsing second) :-(
Does anyone know how to solve it?
--
Filip Kaliński <filon@pld.org.pl>