Fixed warning in model.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 # Put m4 macros in their own directory
12 AC_CONFIG_MACRO_DIR(m4)
13 # Initialize Automake
14 AM_INIT_AUTOMAKE([-Wall])
15 # Configure with --enable-silent-rules to cut down on clutter
16 AM_SILENT_RULES
17
18 ### LIBRARY VERSIONING ########################################################
19 # Only update immediately before a public release
20
21 CHIMARA_CURRENT=0  # Increment if interface changes
22 CHIMARA_REVISION=0 # Increment if source changes; set 0 if interface changes
23 CHIMARA_AGE=0 # Increment if interfaces added; set 0 if removed
24 LT_VERSION_INFO="$CHIMARA_CURRENT:$CHIMARA_REVISION:$CHIMARA_AGE"
25 AC_SUBST(LT_VERSION_INFO)
26
27 ### DECLARE PROGRAMS ##########################################################
28
29 AC_PROG_CC                 # C compiler
30 AM_PROG_CC_C_O             # Automake requires this for per-target CFLAGS
31 AC_PROG_INSTALL            # Install
32 m4_defun([_LT_AC_LANG_CXX_CONFIG], [:]) # Disable unnecessary Libtool checks
33 m4_defun([_LT_AC_LANG_F77_CONFIG], [:]) # to save time (1.5 only)
34 LT_INIT                    # Libtool 2.2.6 and up
35 #LT_INIT([dlopen])         # Should call it this way, but
36 #LT_PREREQ([2.2.6])        # ...goddamn Debian still has 1.5
37 AC_PROG_LIBTOOL            # Old way of declaring Libtool
38 AM_GNU_GETTEXT([external]) # Gettext, link to system libintl
39 IT_PROG_INTLTOOL([0.35.0]) # Intltool
40 PKG_PROG_PKG_CONFIG        # pkg_config
41 GTK_DOC_CHECK(1.9)         # Gtk-Doc
42
43 ### TYPES #####################################################################
44
45 AC_TYPE_INT32_T
46 AC_TYPE_UINT32_T
47
48 ### INTERNATIONALIZATION ######################################################
49
50 AM_GNU_GETTEXT_VERSION([0.17])
51 GETTEXT_PACKAGE=chimara
52 AC_SUBST(GETTEXT_PACKAGE)
53 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
54
55 ### CHECK FOR LIBRARIES #######################################################
56
57 GTK_REQUIRED_VERSION=2.8
58 GLIB_REQUIRED_VERSION=2.6
59
60 AC_SUBST(GTK_REQUIRED_VERSION)
61 AC_SUBST(GLIB_REQUIRED_VERSION)
62
63 # Libraries needed to build Chimara library
64 PKG_CHECK_MODULES([CHIMARA], [
65         glib-2.0 >= $GLIB_REQUIRED_VERSION
66         gtk+-2.0 >= $GTK_REQUIRED_VERSION
67         gthread-2.0 
68         gmodule-2.0
69         pango
70 ])
71 CHIMARA_LIBS="$CHIMARA_LIBS -lm"
72 AC_SUBST(CHIMARA_LIBS)
73 # Libraries needed to build test programs
74 PKG_CHECK_MODULES([TEST], [
75         gtk+-2.0 >= $GTK_REQUIRED_VERSION 
76         gmodule-2.0
77 ])
78
79 ### OUTPUT ####################################################################
80
81 # Output platform-specific definitions to config.h
82 AC_CONFIG_HEADERS([config.h])
83 # List of other files for Autoconf to output
84 AC_CONFIG_FILES([
85 Makefile
86 chimara.pc
87 chimara-plugin.pc
88 libchimara/Makefile
89 interpreters/Makefile
90 interpreters/frotz/Makefile
91 interpreters/nitfol/Makefile
92 tests/Makefile
93 docs/Makefile
94 docs/reference/Makefile
95 docs/reference/version.xml
96 po/Makefile.in
97 ])
98 # Do it
99 AC_OUTPUT
100