X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=configure.in;h=1b30c42d272a1e8615a1354c87f7980b7715787f;hp=edcf792b04e531144d5ef5cce8e35c32d1dd6c06;hb=ab0a5465f83a5bee0f2f029bfb03edc4c5022515;hpb=6f6d24c02ef3e3a7600432bed1c801a611c3c918 diff --git a/configure.in b/configure.in index edcf792..1b30c42 100644 --- a/configure.in +++ b/configure.in @@ -23,8 +23,22 @@ if test "x$BOOST_SERIALIZATION_LIB" = "x"; then exit 1 fi -PKG_CHECK_MODULES(CODEGEN, libxml++-2.6 >= 2.8.1) -AC_SUBST(CODEGEN_CFLAGS) -AC_SUBST(CODEGEN_LIBS) - +PKG_CHECK_MODULES(XMLPP, libxml++-2.6 >= 2.8.1) +AC_SUBST(XMLPP_CFLAGS) +AC_SUBST(XMLPP_LIBS) + +dnl fake installed libt2n (codegen) for example-codegen +LIBT2N_CFLAGS="-I\$(top_srcdir)/src @BOOST_CPPFLAGS@ @CPPUNIT_CFLAGS@ -I\$(top_srcdir)/codegen" +LIBT2N_LIBS="\$(top_builddir)/src/libt2n.la @BOOST_SERIALIZATION_LIB@ @BOOST_LDFLAGS@" +LIBT2N_CODEGEN="\$(top_builddir)/codegen/libt2n-codegen" +LIBT2N_CLIENT_PCTEMPLATE="\$(top_srcdir)/codegen/clientlib.pc.in" + +AC_SUBST(LIBT2N_CFLAGS) +AC_SUBST(LIBT2N_LIBS) +AC_SUBST(LIBT2N_CODEGEN) +AC_SUBST(LIBT2N_CLIENT_PCTEMPLATE) + +dnl todo: do not create .pc file in configure but in make +dnl see also autoconf manual "Installation Directory Variables" + AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile examples/Makefile codegen/Makefile example-codegen/Makefile)