source: main/trunk/gs2-core/runtime-src/configure.ac@ 21519

Last change on this file since 21519 was 21519, checked in by mdewsnip, 14 years ago

Fixing up inclusion/exclusion of SQLite support, and changing default to be included.

File size: 2.2 KB
RevLine 
[21473]1###########################################################################
2#
3# configure -- Configure script for runtime-src
4#
5# A component of the Greenstone digital library software
6# from the New Zealand Digital Library Project at the
7# University of Waikato, New Zealand.
8#
9# Copyright (C) 1999-2010 The New Zealand Digital Library Project
10#
11# This program is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24#
25###########################################################################
26
27
28AC_INIT([greenstone2-runtime-src], [2.84], [[email protected]])
29AC_CONFIG_AUX_DIR([.])
30AM_CONFIG_HEADER([config.h])
31AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
32
[21494]33# This package requires the crypt library
34AC_HAVE_LIBRARY(crypt)
35
[21473]36# This package requires C++ compilation and library creation
37AC_PROG_CXX
38AC_PROG_INSTALL
39AC_PROG_RANLIB
40
41# Check for 64-bit machines
42AC_CANONICAL_HOST
43AC_MSG_CHECKING(if architecture is 64-bit)
44arch_64bit=no
45case "$host_cpu" in
46 x86_64) arch_64bit=yes ;;
47esac
48if test "$arch_64bit" = yes; then
49 AC_MSG_RESULT(yes)
50 if test -z "$COMPAT32BITFLAGS" ; then
51 COMPAT32BITFLAGS="-m32"
52 fi
53else
54 AC_MSG_RESULT(no)
55fi
56AC_SUBST(COMPAT32BITFLAGS)
57
[21519]58# Option: SQLite support (enabled by default)
59AC_ARG_ENABLE([sqlite], [AS_HELP_STRING([--disable-sqlite], [Disable SQLite support])], [], [enable_sqlite=yes])
60if test "x$enable_sqlite" != xno; then
61 AC_DEFINE(USE_SQLITE, 1, [SQLite support])
62fi
63AM_CONDITIONAL(USE_SQLITE, test "x$enable_sqlite" != xno)
[21473]64
65# Generate the Makefiles for this package
[21505]66AC_OUTPUT(Makefile src/colservr/Makefile src/protocol/Makefile src/recpt/Makefile src/oaiservr/Makefile)
Note: See TracBrowser for help on using the repository browser.