Version 1.1
[dirac_parser.git] / configure.ac
blob17552c68fa0eabff86a130a8c42cd69f95344e29
1 AC_PREREQ(2.61)
2 AC_INIT(dirac_parser,1.1)
3 AM_INIT_AUTOMAKE(1.6)
5 dnl -----------------------------------------------
6 dnl Package name and version number (user defined)
7 dnl -----------------------------------------------
9 DIRAC_PARSER_MAJORMINOR=1.1
10 AC_SUBST(DIRAC_PARSER_MAJORMINOR)
12 AC_CONFIG_HEADERS(config.h)
14 AC_PROG_CXX
15 AC_LIBTOOL_WIN32_DLL
16 AM_PROG_LIBTOOL
17 AC_SYS_LARGEFILE
19 dnl -----------------------------------------------
20 dnl Check if static libraries to be used on non-Windows platforms
21 dnl -----------------------------------------------
22 AM_CONDITIONAL(USE_STATIC, test x"$enable_static" = "xyes")
24 ############################
25 # Cppunit
26 ############################
27 AC_ARG_ENABLE(cppunit, AS_HELP_STRING([--enable-cppunit],[disable cppunit support (default=disabled)]))
28 if test "x$enable_cppunit" == xyes
29 then
30         PKG_CHECK_MODULES(CPPUNIT, cppunit > 0, HAVE_CPPUNIT=yes, HAVE_CPPUNIT=no)
31         if test "x${HAVE_CPPUNIT}" != xyes ; then
32                 AC_MSG_ERROR([cppunit is required])
33         fi
34         AC_DEFINE(HAVE_CPPUNIT, 1, [Support for Cppunit])
35 else
36   HAVE_CPPUNIT=no
39 AM_CONDITIONAL(HAVE_CPPUNIT, test "x$HAVE_CPPUNIT" = "xyes")
40 AC_SUBST(CPPUNIT_CFLAGS)
41 AC_SUBST(CPPUNIT_LIBS)
45 dnl When updating this don't forget the SUBDIRS= list in each Makefile.am down
46 AC_CONFIG_FILES([ Makefile \
47       dirac_parser.pc \
48                         bitstreams/Makefile \
49                         src/Makefile \
50                         src/common/Makefile \
51                         src/parser/Makefile \
52                         src/unittest/Makefile \
53          ])
54 AC_OUTPUT