1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([ADG],[0.5.5],[http://dev.entidi.com/p/adg/],
4 [adg],[http://adg.entidi.com/])
5 AC_CONFIG_SRCDIR([configure.ac])
6 AC_CONFIG_HEADERS([config.h])
7 AC_CONFIG_MACRO_DIR([m4])
8 AM_INIT_AUTOMAKE([1.6])
17 AC_PATH_PROG([XSLTPROC],[xsltproc],[/usr/bin/xsltproc])
18 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums],[/usr/bin/glib-mkenums])
19 AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal],[/usr/bin/glib-genmarshal])
24 dnl Alloca is required by cpml, so it should be removed
25 dnl in case the adg and cpml libraries will be splitted
31 GETTEXT_PACKAGE="adg-$PACKAGE_VERSION"
32 AC_SUBST([GETTEXT_PACKAGE])
33 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],
34 [Define to the domain used by gettext.])
37 GLIB_DEFINE_LOCALEDIR([LOCALEDIR])
40 # Check required packages
43 PKG_CHECK_MODULES([GOBJECT2],[gobject-2.0 >= 2.4.0])
44 PKG_CHECK_MODULES([CAIRO],[cairo >= 1.7.4])
47 # Check for optional GTK+2 support
50 [AS_HELP_STRING([--enable-gtk2],
51 [include GKT+2 specific widgets @<:@default=check@:>@])],
52 [],[enable_gtk2=check])
54 AS_IF([test "x$enable_gtk2" != "xno"],
55 [PKG_CHECK_MODULES([GTK2],[gtk+-2.0 >= 2.12.0],
57 ADG_OPTIONAL_REQUIRES=',gtk+-2.0 >= 2.12.0'],
58 [AS_IF([test "x$enable_gtk2" = "xyes"],
59 [AC_MSG_ERROR([$GTK2_PKG_ERRORS but GTK+2 support requested])],
61 AM_CONDITIONAL([HAVE_GTK2],[test "x$enable_gtk2" = "xyes"])
62 AC_SUBST([ADG_OPTIONAL_REQUIRES])
67 SHAVE_INIT([],[enable])
68 AC_CONFIG_FILES([shave
80 docs/cpml/bookinfo.xml