Ignore:
Timestamp:
2009-12-09T21:49:00+13:00 (15 years ago)
Author:
ak19
Message:

Changes to makefiles, configure files, and source code to work with the new configure flags that allow indexers to be individually compiled up by setting each indexer to be enabled or disabled (enable-mg, enable-mgpp, enable-lucene).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/configure.in

    r20846 r21327  
    7575AC_DEFINE(USE_SQLITE, $USE_SQLITE)
    7676AC_SUBST(USE_SQLITE)
     77
     78dnl
     79dnl Set compilation of MG (enabled by default)
     80dnl
     81AC_ARG_ENABLE(mg, [  --disable-mg        Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)
     82if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
     83  ENABLE_MG=1
     84  AC_DEFINE(ENABLE_MG,[])
     85else
     86  ENABLE_MG=0
     87fi
     88AC_SUBST(ENABLE_MG)
     89
     90dnl
     91dnl Set compilation of MGPP (enabled by default)
     92dnl
     93AC_ARG_ENABLE(mgpp, [  --disable-mgpp        Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)
     94if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
     95  ENABLE_MGPP=1
     96  AC_DEFINE(ENABLE_MGPP,[])
     97else
     98  ENABLE_MGPP=0
     99fi
     100AC_SUBST(ENABLE_MGPP)
     101
     102dnl
     103dnl Set compilation of lucene (enabled by default)
     104dnl
     105AC_ARG_ENABLE(lucene, [  --disable-lucene        Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
     106if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     107  ENABLE_LUCENE=1
     108  AC_DEFINE(ENABLE_LUCENE,[])
     109else
     110  ENABLE_LUCENE=0
     111fi
     112AC_SUBST(ENABLE_LUCENE)
     113
    77114
    78115dnl Checks for programs.
Note: See TracChangeset for help on using the changeset viewer.