Got rid of unused variable warnings in gi_blorb.c
[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(libchimara/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 ### TYPES #####################################################################
29
30 AC_TYPE_INT32_T
31 AC_TYPE_UINT32_T
32
33 ### INTERNATIONALIZATION ######################################################
34
35 GETTEXT_PACKAGE=chimara
36 AC_SUBST(GETTEXT_PACKAGE)
37 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
38
39 ### CHECK FOR LIBRARIES #######################################################
40
41 GTK_REQUIRED_VERSION=2.8
42 GLIB_REQUIRED_VERSION=2.6
43
44 AC_SUBST(GTK_REQUIRED_VERSION)
45 AC_SUBST(GLIB_REQUIRED_VERSION)
46
47 # Libraries needed to build Chimara library
48 PKG_CHECK_MODULES([CHIMARA], [
49         glib-2.0 >= $GLIB_REQUIRED_VERSION
50         gtk+-2.0 >= $GTK_REQUIRED_VERSION
51         gthread-2.0 
52         gmodule-2.0
53         pango
54 ])
55 CHIMARA_LIBS="$CHIMARA_LIBS -lm"
56 AC_SUBST(CHIMARA_LIBS)
57 # Libraries needed to build test programs
58 PKG_CHECK_MODULES([TEST], [
59         gtk+-2.0 >= $GTK_REQUIRED_VERSION 
60         gmodule-2.0
61 ])
62
63 ### GTK-DOC ###################################################################
64
65 # Allow gtkdocize to automatically copy the macro definition for
66 # GTK_DOC_CHECK to the project.
67 # AC_CONFIG_MACRO_DIR(m4)
68
69 ### OUTPUT ####################################################################
70
71 # Output platform-specific definitions to config.h
72 AC_CONFIG_HEADERS([config.h])
73 # List of other files for Autoconf to output
74 AC_CONFIG_FILES([
75 Makefile
76 chimara.pc
77 chimara-plugin.pc
78 libchimara/Makefile
79 interpreters/Makefile
80 interpreters/frotz/Makefile
81 interpreters/nitfol/Makefile
82 tests/Makefile
83 docs/Makefile
84 docs/reference/Makefile
85 docs/reference/version.xml
86 po/Makefile.in
87 ])
88 # Do it
89 AC_OUTPUT
90