installation and .pc file generation
[libt2n] / configure.in
index 6e8b944..edcf792 100644 (file)
@@ -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
@@ -20,4 +23,8 @@ if test "x$BOOST_SERIALIZATION_LIB" = "x"; then
            exit 1
 fi
 
-AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile)
+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)