1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([ADG],[0.5.1],[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])
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])
47 AS_IF([test "x$enable_gtk2" != "xno"],
48 [PKG_CHECK_MODULES([GTK2],[gtk+-2.0 >= 2.12.0],
50 [AS_IF([test "x$enable_gtk2" = "xyes"],
51 [AC_MSG_ERROR([$GTK2_PKG_ERRORS but GTK+2 support requested])],
53 AM_CONDITIONAL([HAVE_GTK2],[test "x$enable_gtk2" = "xyes"])
58 SHAVE_INIT([],[enable])
59 AC_CONFIG_FILES([shave
69 docs/cpml/bookinfo.xml