Commit | Line | Data |
---|---|---|
ac7fdc22 GE |
1 | AC_INIT(configure.in) |
2 | ||
3 | AM_CONFIG_HEADER(config.h) | |
28cb45a5 | 4 | dnl AC_CONFIG_HEADERS([config.h:config.h.in]) |
8d46949a | 5 | AM_INIT_AUTOMAKE(libt2n, 0.4) |
ac7fdc22 | 6 | |
28cb45a5 GE |
7 | AC_DEFINE(PROTOCOL_VERSION, 1, [protocol version used (integers, increase version if incompatible)]) |
8 | ||
ac7fdc22 GE |
9 | AC_LANG_CPLUSPLUS |
10 | AC_PROG_CXX | |
11 | AM_PROG_LIBTOOL | |
12 | ||
59adb9e2 | 13 | dnl check for doxygen |
a16e5f7e | 14 | AC_PATH_PROG(DOXYGEN, doxygen) |
59c8cfaa | 15 | AM_CONDITIONAL(HAVE_DOXYGEN, test -n $DOXYGEN) |
59adb9e2 | 16 | |
07e98688 GE |
17 | AM_CONDITIONAL(AUTOCHECK, test "$enable_autocheck" = yes) |
18 | AM_PATH_CPPUNIT(1.8.0) | |
19 | ||
d184c648 GE |
20 | AX_BOOST([1.33]) |
21 | if test "x$BOOST_SERIALIZATION_LIB" = "x"; then | |
22 | echo "Sorry, we need the Serialization-Lib from Boost." | |
23 | exit 1 | |
24 | fi | |
25 | ||
eea21b24 JT |
26 | PKG_CHECK_MODULES(XMLPP, libxml++-2.6 >= 2.8.1) |
27 | AC_SUBST(XMLPP_CFLAGS) | |
28 | AC_SUBST(XMLPP_LIBS) | |
6f6d24c0 | 29 | |
1f0aa49f | 30 | dnl fake installed libt2n (codegen) for example-codegen |
2e525d6f JT |
31 | dnl LIBT2N_CFLAGS="-I\$(top_srcdir)/src @BOOST_CPPFLAGS@ @CPPUNIT_CFLAGS@ -I\$(top_srcdir)/codegen" |
32 | dnl LIBT2N_LIBS="\$(top_builddir)/src/libt2n.la @BOOST_SERIALIZATION_LIB@ @BOOST_LDFLAGS@" | |
33 | dnl LIBT2N_CODEGEN="\$(top_builddir)/codegen/libt2n-codegen" | |
34 | dnl LIBT2N_CLIENT_PCTEMPLATE="\$(top_srcdir)/codegen/clientlib.pc.in" | |
44a58add | 35 | |
86c3b9ab | 36 | AC_SUBST(LIBT2N_CFLAGS) |
44a58add JT |
37 | AC_SUBST(LIBT2N_LIBS) |
38 | AC_SUBST(LIBT2N_CODEGEN) | |
1f0aa49f | 39 | AC_SUBST(LIBT2N_CLIENT_PCTEMPLATE) |
7eb34f4d JT |
40 | |
41 | dnl todo: do not create .pc file in configure but in make | |
42 | dnl see also autoconf manual "Installation Directory Variables" | |
44a58add | 43 | |
c8dcbc9e | 44 | AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile examples/Makefile codegen/Makefile examples-codegen/Makefile) |