configure.in 2.15 KB
Newer Older
Christophe de Vienne's avatar
Christophe de Vienne committed
1 2 3
AC_INIT(libxml++/libxml++.h)

#release versioning
4
GENERIC_MAJOR_VERSION=2
5 6
GENERIC_MINOR_VERSION=8
GENERIC_MICRO_VERSION=0
Christophe de Vienne's avatar
Christophe de Vienne committed
7
GENERIC_VERSION=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION
8 9
AC_SUBST(GENERIC_MAJOR_VERSION)
AC_SUBST(GENERIC_MINOR_VERSION)
Christophe de Vienne's avatar
Christophe de Vienne committed
10 11 12
AC_SUBST(GENERIC_VERSION)

#shared library versioning
13
GENERIC_LIBRARY_VERSION=2:1:1
Christophe de Vienne's avatar
Christophe de Vienne committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
#                       | | |
#                +------+ | +---+
#                |        |     |
#             current:revision:age
#                |        |     |
#                |        |     +- increment if interfaces have been added
#                |        |        set to zero if interfaces have been removed
#                                  or changed
#                |        +- increment if source code has changed
#                |           set to zero if current is incremented
#                +- increment if interfaces have been added, removed or changed
AC_SUBST(GENERIC_LIBRARY_VERSION)



VERSION=$GENERIC_VERSION


AM_INIT_AUTOMAKE(libxml++, $GENERIC_VERSION)

AC_PROG_CXX
AC_PROG_CXXCPP
AC_LANG_CPLUSPLUS
AC_PROG_INSTALL
AM_PROG_LIBTOOL

AC_CHECK_HEADERS(string list map, , exit)

42
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= 2.6.1 glibmm-2.4 >= 2.4.0)
Christophe de Vienne's avatar
Christophe de Vienne committed
43 44 45 46 47 48 49 50 51 52 53 54 55

# Dummy conditional just to make automake-1.4 happy.
# We need an always-false condition in docs/Makefile.am.
AM_CONDITIONAL(LIBXMLCPP_FALSE,[false])


AC_OUTPUT(
  Makefile
  libxml++/Makefile
    libxml++/parsers/Makefile
    libxml++/exceptions/Makefile
    libxml++/nodes/Makefile
    libxml++/io/Makefile
56
    libxml++/validators/Makefile
Christophe de Vienne's avatar
Christophe de Vienne committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
    
  docs/Makefile
    docs/reference/Makefile
    docs/reference/Doxyfile

  examples/Makefile
    examples/dom_build/Makefile
    examples/dom_parser/Makefile
    examples/dom_parse_entities/Makefile
    examples/dom_read_write/Makefile
    examples/dom_xpath/Makefile
    examples/sax_parser/Makefile
    examples/sax_parser_entities/Makefile
    examples/sax_parser_build_dom/Makefile
    examples/sax_exception/Makefile
    examples/import_node/Makefile
73
    examples/textreader/Makefile
74
    examples/dtdvalidation/Makefile
Christophe de Vienne's avatar
Christophe de Vienne committed
75 76 77 78

  win32_msvc6/Makefile
    win32_msvc6/examples/Makefile

79
  libxml++-2.6.pc
Christophe de Vienne's avatar
Christophe de Vienne committed
80 81
  libxml++.spec
)