1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([ADG],[0.5.4],[ntd at entidi.it],[adg],[http://adg.entidi.com/])
4 AC_CONFIG_SRCDIR([configure.ac])
5 AC_CONFIG_HEADERS([config.h])
6 AC_CONFIG_MACRO_DIR([m4])
7 AM_INIT_AUTOMAKE([1.6])
16 AC_PATH_PROG([XSLTPROC],[xsltproc],[/usr/bin/xsltproc])
17 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums],[/usr/bin/glib-mkenums])
18 AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal],[/usr/bin/glib-genmarshal])
23 dnl Alloca is required by cpml, so it should be removed
24 dnl in case the adg and cpml libraries will be splitted
30 AM_GNU_GETTEXT([external])
31 AM_GNU_GETTEXT_VERSION([0.15])
34 # Check required packages
37 PKG_CHECK_MODULES([GOBJECT2],[gobject-2.0 >= 2.4.0])
38 PKG_CHECK_MODULES([CAIRO],[cairo >= 1.7.4])
41 # Check for optional GTK+2 support
44 [AS_HELP_STRING([--enable-gtk2],
45 [include GKT+2 specific widgets @<:@default=check@:>@])],
46 [],[enable_gtk2=check])
48 AS_IF([test "x$enable_gtk2" != "xno"],
49 [PKG_CHECK_MODULES([GTK2],[gtk+-2.0 >= 2.12.0],
51 ADG_OPTIONAL_REQUIRES=',gtk+-2.0 >= 2.12.0'],
52 [AS_IF([test "x$enable_gtk2" = "xyes"],
53 [AC_MSG_ERROR([$GTK2_PKG_ERRORS but GTK+2 support requested])],
55 AM_CONDITIONAL([HAVE_GTK2],[test "x$enable_gtk2" = "xyes"])
57 AC_SUBST([ADG_OPTIONAL_REQUIRES])
61 SHAVE_INIT([],[enable])
62 AC_CONFIG_FILES([shave
74 docs/cpml/bookinfo.xml