X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=configure.in;h=edcf792b04e531144d5ef5cce8e35c32d1dd6c06;hp=b7d9353e8b783c6f958714bcfe1d9c4c66be6261;hb=6f6d24c02ef3e3a7600432bed1c801a611c3c918;hpb=07e98688a1a8c3e915ce923f79261a88251a9edd diff --git a/configure.in b/configure.in index b7d9353..edcf792 100644 --- a/configure.in +++ b/configure.in @@ -1,8 +1,11 @@ AC_INIT(configure.in) AM_CONFIG_HEADER(config.h) +dnl AC_CONFIG_HEADERS([config.h:config.h.in]) AM_INIT_AUTOMAKE(libt2n, 0.1) +AC_DEFINE(PROTOCOL_VERSION, 1, [protocol version used (integers, increase version if incompatible)]) + AC_LANG_CPLUSPLUS AC_PROG_CXX AM_PROG_LIBTOOL @@ -14,4 +17,14 @@ AM_CONDITIONAL(HAVE_DOXYGEN, test -n $DOXYGEN); AM_CONDITIONAL(AUTOCHECK, test "$enable_autocheck" = yes) AM_PATH_CPPUNIT(1.8.0) -AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile) +AX_BOOST([1.33]) +if test "x$BOOST_SERIALIZATION_LIB" = "x"; then + echo "Sorry, we need the Serialization-Lib from Boost." + exit 1 +fi + +PKG_CHECK_MODULES(CODEGEN, libxml++-2.6 >= 2.8.1) +AC_SUBST(CODEGEN_CFLAGS) +AC_SUBST(CODEGEN_LIBS) + +AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile examples/Makefile codegen/Makefile example-codegen/Makefile)