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 |
|
---|
28 | AC_INIT([greenstone2-runtime-src], [2.84], [[email protected]])
|
---|
29 | AC_CONFIG_AUX_DIR([.])
|
---|
30 | AC_CONFIG_HEADERS([config.h])
|
---|
31 | AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
|
---|
32 |
|
---|
33 | # This package requires the crypt library
|
---|
34 | AC_HAVE_LIBRARY(crypt)
|
---|
35 |
|
---|
36 | # This package requires C++ compilation and library creation
|
---|
37 | AC_PROG_CXX
|
---|
38 | AC_PROG_INSTALL
|
---|
39 | AC_PROG_RANLIB
|
---|
40 |
|
---|
41 | # Check for 64-bit machines
|
---|
42 | AC_CANONICAL_HOST
|
---|
43 | AC_MSG_CHECKING(if architecture is 64-bit)
|
---|
44 | arch_64bit=no
|
---|
45 | case "$host_cpu" in
|
---|
46 | x86_64) arch_64bit=yes ;;
|
---|
47 | esac
|
---|
48 | if test "$arch_64bit" = yes; then
|
---|
49 | AC_MSG_RESULT(yes)
|
---|
50 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
51 | COMPAT32BITFLAGS="-m32"
|
---|
52 | fi
|
---|
53 | else
|
---|
54 | AC_MSG_RESULT(no)
|
---|
55 | fi
|
---|
56 | AC_SUBST(COMPAT32BITFLAGS)
|
---|
57 |
|
---|
58 | # Option: Lucene support (enabled by default)
|
---|
59 | AC_ARG_ENABLE([lucene], [AS_HELP_STRING([--disable-lucene], [Disable Lucene support])], [], [enable_lucene=yes])
|
---|
60 | if test "x$enable_lucene" != xno; then
|
---|
61 | AC_DEFINE(ENABLE_LUCENE, 1, [Lucene support])
|
---|
62 | fi
|
---|
63 | AM_CONDITIONAL(ENABLE_LUCENE, test "x$enable_lucene" != xno)
|
---|
64 |
|
---|
65 | # Option: SQLite support (enabled by default)
|
---|
66 | AC_ARG_ENABLE([sqlite], [AS_HELP_STRING([--disable-sqlite], [Disable SQLite support])], [], [enable_sqlite=yes])
|
---|
67 | if test "x$enable_sqlite" != xno; then
|
---|
68 | AC_DEFINE(USE_SQLITE, 1, [SQLite support])
|
---|
69 | fi
|
---|
70 | AM_CONDITIONAL(USE_SQLITE, test "x$enable_sqlite" != xno)
|
---|
71 |
|
---|
72 | # Generate the Makefiles for this package
|
---|
73 | AC_OUTPUT(Makefile src/colservr/Makefile src/protocol/Makefile src/recpt/Makefile src/oaiservr/Makefile)
|
---|