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

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

Changing all the configure scripts and makefiles I created (from scratch, to use autoconf and automake) to have my name and copyright DL Consulting Ltd.

File size: 1.7 KB
Line 
1###########################################################################
2#
3# configure -- Configure script for runtime-src
4#
5# By Michael Dewsnip
6#
7# Copyright (C) 2010 DL Consulting Ltd.
8#
9###########################################################################
10
11
12AC_INIT([greenstone2-runtime-src], [2.84], [[email protected]])
13AC_CONFIG_AUX_DIR([.])
14AC_CONFIG_HEADERS([config.h])
15AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
16
17# This package requires the crypt library
18AC_HAVE_LIBRARY(crypt)
19
20# This package requires C++ compilation and library creation
21AC_PROG_CXX
22AC_PROG_INSTALL
23AC_PROG_RANLIB
24
25# Check for 64-bit machines
26AC_CANONICAL_HOST
27AC_MSG_CHECKING(if architecture is 64-bit)
28arch_64bit=no
29case "$host_cpu" in
30 x86_64) arch_64bit=yes ;;
31esac
32if test "$arch_64bit" = yes; then
33 AC_MSG_RESULT(yes)
34 if test -z "$COMPAT32BITFLAGS" ; then
35 COMPAT32BITFLAGS="-m32"
36 fi
37else
38 AC_MSG_RESULT(no)
39fi
40AC_SUBST(COMPAT32BITFLAGS)
41
42# Option: Lucene support (enabled by default)
43AC_ARG_ENABLE([lucene], [AS_HELP_STRING([--disable-lucene], [Disable Lucene support])], [], [enable_lucene=yes])
44if test "x$enable_lucene" != xno; then
45 AC_DEFINE(ENABLE_LUCENE, 1, [Lucene support])
46fi
47AM_CONDITIONAL(ENABLE_LUCENE, test "x$enable_lucene" != xno)
48
49# Option: SQLite support (enabled by default)
50AC_ARG_ENABLE([sqlite], [AS_HELP_STRING([--disable-sqlite], [Disable SQLite support])], [], [enable_sqlite=yes])
51if test "x$enable_sqlite" != xno; then
52 AC_DEFINE(USE_SQLITE, 1, [SQLite support])
53fi
54AM_CONDITIONAL(USE_SQLITE, test "x$enable_sqlite" != xno)
55
56# Generate the Makefiles for this package
57AC_OUTPUT(Makefile src/colservr/Makefile src/protocol/Makefile src/recpt/Makefile src/oaiservr/Makefile)
Note: See TracBrowser for help on using the repository browser.