In my current configure.in I create new substitution variables for each
library that may be optionally included. For example, a test might set:
LIBFOO_CPPFLAGS = "-Ifoo/include"
LIBFOO_LDFLAGS = "-Lfoo/lib"
LIB_FOO_LIBS = "-lfoo"
The problem is then in Makefile.in I do something like
libs = @LIBS@ @LIB_FOO_LIBS@ @LIB_OTHERLIB_LIBS@ ...
Is there any reason not to do this in configure.in:
CPPFLAGS = "${CPPFLAGS} -Ifoo/include"
LDFLAGS = "${LDFLAGS} -Lfoo/lib"
LIBS = "${LIBS} -lfoo"
and then in Makefile.in simply:
cppflags = @CPPFLAGS@
ldflags = @LDFLAGS@
libs = @LIBS@
Or is that setting myself up for problems if I need to use more than one
Makefile (e.g. don't want the same @LIBS@ for various Makefiles)?
Thanks,
--
Bill Moseley
mailto:[EMAIL PROTECTED]