Ignore:
Timestamp:
2009-12-09T21:51:41+13:00 (14 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/configure.in

    r20853 r21330  
    3838AC_SUBST(USE_CORBA)
    3939
    40 AC_ARG_WITH(micodir, [  --with-micodir          Use installed MICO directory], MICO_DIR=$enableval, MICO_DIR="default")
     40AC_ARG_WITH(micodir, [  --with-micodir          Use installed MICO directory], MICO_DIR=$withval, MICO_DIR="default")
    4141AC_DEFINE_UNQUOTED(MICO_DIR, "$MICO_DIR")
    4242AC_SUBST(MICO_DIR)
     
    8080AC_DEFINE(USE_APACHE_HTTPD, $USE_APACHE_HTTPD)
    8181AC_SUBST(USE_APACHE_HTTPD)
     82
     83
     84dnl
     85dnl Set compilation of MG (enabled by default)
     86dnl
     87AC_ARG_ENABLE(mg, [  --disable-mg    Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)
     88if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
     89  ENABLE_MG=1
     90  AC_DEFINE(ENABLE_MG,[])
     91 else
     92  ENABLE_MG=0
     93 fi
     94AC_SUBST(ENABLE_MG)
     95
     96
     97dnl
     98dnl Set compilation of MGPP (enabled by default)
     99dnl
     100AC_ARG_ENABLE(mgpp, [  --disable-mgpp        Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)
     101if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
     102  ENABLE_MGPP=1
     103  AC_DEFINE(ENABLE_MGPP,[])
     104else
     105  ENABLE_MGPP=0
     106fi
     107AC_SUBST(ENABLE_MGPP)
     108
     109dnl
     110dnl Set compilation of lucene (enabled by default)
     111dnl
     112AC_ARG_ENABLE(lucene, [  --disable-lucene        Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
     113if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     114  ENABLE_LUCENE=1
     115  AC_DEFINE(ENABLE_LUCENE, [])
     116else
     117  ENABLE_LUCENE=0
     118fi
     119AC_SUBST(ENABLE_LUCENE)
    82120
    83121
Note: See TracChangeset for help on using the changeset viewer.