[AdgFillStyle] Initial implementation
[adg.git] / configure.ac
blob3771b281dc7d651be1d5a6df6c0f5af785f92b50
1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([ADG],[0.5.2],[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
10 # Check for programs
12 AC_PROG_CC
13 AC_DISABLE_STATIC
14 AC_PROG_LIBTOOL
15 PKG_PROG_PKG_CONFIG
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])
21 # Check for functions
23 dnl Alloca is required by cpml, so it should be removed
24 dnl in case the adg and cpml libraries will be splitted
25 AC_FUNC_ALLOCA
28 # I18n
30 AM_GNU_GETTEXT([external])
31 AM_GNU_GETTEXT_VERSION([0.15])
34 # Check required packages
36 GTK_DOC_CHECK([1.9])
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
43 AC_ARG_ENABLE([gtk2],
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],
49                          [enable_gtk2=yes],
50                          [AS_IF([test "x$enable_gtk2" = "xyes"],
51                                 [AC_MSG_ERROR([$GTK2_PKG_ERRORS but GTK+2 support requested])],
52                                 [enable_gtk2=no])])])
53 AM_CONDITIONAL([HAVE_GTK2],[test "x$enable_gtk2" = "xyes"])
56 # Final step
58 SHAVE_INIT([],[enable])
59 AC_CONFIG_FILES([shave
60                  shave-libtool
61                  Makefile
62                  cpml/Makefile
63                  adg/Makefile
64                  demo/Makefile
65                  docs/Makefile
66                  docs/adg/Makefile
67                  docs/adg/bookinfo.xml
68                  docs/cpml/Makefile
69                  docs/cpml/bookinfo.xml
70                  po/Makefile.in])
71 AC_OUTPUT