~rob-t-telus/vbuilder/trunk

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Rob Thornton
  • Date: 2012-01-15 15:36:11 UTC
  • mfrom: (138.1.6 1.0)
  • Revision ID: rob_t@telus.net-20120115153611-ud6movp23uc40myb
Merge changes for version 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Process this file with autoconf to product a configure script
2
2
 
3
 
# FIXME: Define version numbers
4
3
m4_define([vb_major], [0])
5
4
m4_define([vb_minor], [9])
6
5
m4_define([vb_rev], [28])
11
10
AC_INIT([vocab-builder], [vb_version], [robthornton@users.sf.net])
12
11
 
13
12
# AC_CONFIG_AUX_DIR *must* come after AC_INIT but before AM_INIT_AUTOMAKE
14
 
AC_CONFIG_AUX_DIR([build-aux])
15
 
AC_CANONICAL_HOST
16
 
 
17
 
# Initalize automake and turn on silent rules by default
18
 
AM_INIT_AUTOMAKE([dist-xz subdir-objects])
19
 
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
20
 
 
21
13
AC_CONFIG_SRCDIR([src/client/main.c])
22
14
AC_CONFIG_HEADERS([config.h:config.in])
23
15
AC_CONFIG_MACRO_DIR([m4])
 
16
AC_CANONICAL_HOST
 
17
 
 
18
# Initalize automake and turn on silent rules (if available) by default
 
19
AM_INIT_AUTOMAKE([1.9 foreign dist-xz subdir-objects])
 
20
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
24
21
 
25
22
# Test for a valid C-compiler, and the install program
26
23
AC_PROG_CC
33
30
AC_CHECK_HEADERS(stdarg.h)
34
31
 
35
32
# Test for libtool and windows resource tools support
 
33
LT_PREREQ([2.4.0])
36
34
LT_INIT([win32-dll])
37
35
LT_LANG([RC])
38
36
 
43
41
AC_CHECK_HEADERS([locale.h libintl.h])
44
42
 
45
43
# Check for pkg-config
46
 
PKG_PROG_PKG_CONFIG([0.22])
 
44
PKG_PROG_PKG_CONFIG([0.24])
47
45
 
48
46
# Check for sqlite and glib/gtk
49
47
PKG_CHECK_MODULES(SQLITE, [sqlite3 >= 3.6.22],,
50
48
        AC_MSG_ERROR([SQLite3 3.6.22 or higher required.]))
51
49
 
52
 
AM_PATH_GLIB_2_0([2.24.1],,AC_MSG_ERROR([Gtk+ 2.24.0 or higher required.]))
53
 
AM_PATH_GTK_2_0([2.20.1],,AC_MSG_ERROR([Gtk+ 2.18.0 or higher required.]))
 
50
PKG_CHECK_MODULES(GLIB,[glib-2.0 >= 2.24.1],,
 
51
        AC_MSG_ERROR([glib-2.0 2.24.1 or higher required.]))
 
52
PKG_CHECK_MODULES(GTK,[gtk+-2.0 >= 2.20.1],,
 
53
        AC_MSG_ERROR([gtk+-2.0 2.20.1 or higher required.]))
54
54
 
55
55
# Check whether debugging symbols should be used
56
56
AC_ARG_ENABLE(debug-level,