Added properties to the ChimaraGlk widget: "default-font-description" and
[rodin/chimara.git] / configure.ac
1 # configure.ac with sensible comments
2
3 ### INITIALIZATION ############################################################
4
5 # Initialize Autoconf 
6 # Args: (human-readable package name, package version, bug report address, 
7 # tarballname)
8 AC_INIT([chimara], [0.1])
9 # Sanity check to make sure we are running Autoconf from the right directory
10 AC_CONFIG_SRCDIR(src/chimara-glk.c)
11 # Initialize Automake
12 AM_INIT_AUTOMAKE([-Wall])
13
14 ### DECLARE PROGRAMS ##########################################################
15
16 AC_PROG_CC                 # C compiler
17 AM_PROG_CC_C_O             # Automake requires this for per-target CFLAGS
18 AC_PROG_INSTALL            # Install
19 LT_INIT                    # Libtool 2.2.6 and up
20 #LT_INIT([dlopen])         # Should call it this way, but
21 #LT_PREREQ([2.2.6])        # ...goddamn Fedora 10 still has 1.5
22 AC_PROG_LIBTOOL            # Old way of declaring Libtool
23 AM_GLIB_GNU_GETTEXT        # Use GLib gettext instead of standard
24 IT_PROG_INTLTOOL([0.35.0]) # Intltool
25 PKG_PROG_PKG_CONFIG        # pkg_config
26 GTK_DOC_CHECK(1.9)         # Gtk-Doc
27
28 ### INTERNATIONALIZATION ######################################################
29
30 GETTEXT_PACKAGE=chimara
31 AC_SUBST(GETTEXT_PACKAGE)
32 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
33
34 ### CHECK FOR LIBRARIES #######################################################
35
36 GTK_REQUIRED_VERSION=2.8
37 GLIB_REQUIRED_VERSION=2.6
38
39 AC_SUBST(GTK_REQUIRED_VERSION)
40 AC_SUBST(GLIB_REQUIRED_VERSION)
41
42 # Libraries needed to build Chimara library
43 PKG_CHECK_MODULES([CHIMARA], [
44         glib-2.0 >= $GLIB_REQUIRED_VERSION
45         gtk+-2.0 >= $GTK_REQUIRED_VERSION
46         gthread-2.0 
47         gmodule-2.0
48         pango
49 ])
50 # Libraries needed to build test programs
51 PKG_CHECK_MODULES([TEST], [
52         gtk+-2.0 >= $GTK_REQUIRED_VERSION 
53         gmodule-2.0
54 ])
55 # GLib CFLAGS for plugins
56 PKG_CHECK_MODULES([GLIB], [glib-2.0 >= $GLIB_REQUIRED_VERSION])
57
58 ### GTK-DOC ###################################################################
59
60 # Allow gtkdocize to automatically copy the macro definition for
61 # GTK_DOC_CHECK to the project.
62 # AC_CONFIG_MACRO_DIR(m4)
63
64 ### OUTPUT ####################################################################
65
66 # Output platform-specific definitions to config.h
67 AC_CONFIG_HEADERS([config.h])
68 # List of other files for Autoconf to output
69 AC_CONFIG_FILES([
70 Makefile
71 chimara.pc
72 chimara-plugin.pc
73 src/Makefile
74 docs/Makefile
75 docs/reference/Makefile
76 docs/reference/version.xml
77 po/Makefile.in
78 ])
79 # Do it
80 AC_OUTPUT
81