This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]