Ignore:
Timestamp:
2009-12-09T21:49:32+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/common-src/indexers/configure

    r20832 r21328  
    272272PACKAGE_BUGREPORT=
    273273
    274 ac_unique_file="mgpp/text/MGQuery.cpp"
    275274ac_subdirs_all="$ac_subdirs_all packages/unac"
    276 ac_subdirs_all="$ac_subdirs_all mg mgpp"
    277 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ENABLE_ACCENTFOLD COMPAT32BITFLAGS JAVAC JAVA uudecode subdirs LIBOBJS LTLIBOBJS'
     275ac_subdirs_all="$ac_subdirs_all mg"
     276ac_subdirs_all="$ac_subdirs_all mgpp"
     277ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ENABLE_ACCENTFOLD ENABLE_MG ENABLE_MGPP ENABLE_LUCENE COMPAT32BITFLAGS JAVAC JAVA uudecode subdirs LIBOBJS LTLIBOBJS'
    278278ac_subst_files=''
    279279
     
    786786  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    787787  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    788   --disable-accentfold    Disable Accent Folding support
     788  --disable-accentfolding    Disable Accent Folding support
     789  --disable-mg        Disable MG compilation
     790  --disable-mgpp        Disable MGPP compilation
     791  --disable-lucene        Disable Lucene compilation
    789792
    790793Optional Packages:
     
    12421245
    12431246
     1247
     1248# Check whether --enable-mg or --disable-mg was given.
     1249if test "${enable_mg+set}" = set; then
     1250  enableval="$enable_mg"
     1251  ENABLE_MG=$enableval
     1252else
     1253  ENABLE_MG=yes
     1254fi;
     1255if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
     1256  ENABLE_MG=1
     1257  cat >>confdefs.h <<\_ACEOF
     1258#define ENABLE_MG
     1259_ACEOF
     1260
     1261else
     1262  ENABLE_MG=0
     1263fi
     1264
     1265
     1266
     1267# Check whether --enable-mgpp or --disable-mgpp was given.
     1268if test "${enable_mgpp+set}" = set; then
     1269  enableval="$enable_mgpp"
     1270  ENABLE_MGPP=$enableval
     1271else
     1272  ENABLE_MGPP=yes
     1273fi;
     1274if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
     1275  ENABLE_MGPP=1
     1276  cat >>confdefs.h <<\_ACEOF
     1277#define ENABLE_MGPP
     1278_ACEOF
     1279
     1280else
     1281  ENABLE_MGPP=0
     1282fi
     1283
     1284
     1285# Check whether --enable-lucene or --disable-lucene was given.
     1286if test "${enable_lucene+set}" = set; then
     1287  enableval="$enable_lucene"
     1288  ENABLE_LUCENE=$enableval
     1289else
     1290  ENABLE_LUCENE=yes
     1291fi;
     1292if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     1293  ENABLE_LUCENE=1
     1294  cat >>confdefs.h <<\_ACEOF
     1295#define ENABLE_LUCENE
     1296_ACEOF
     1297
     1298else
     1299  ENABLE_LUCENE=0
     1300fi
     1301
     1302
     1303
    12441304cat >>confdefs.h <<_ACEOF
    12451305#define COMPAT32BITFLAGS $COMPAT32BITFLAGS
     
    13481408CLASS_TEST=Test.class
    13491409cat << \EOF > $JAVA_TEST
    1350 /* #line 1350 "configure" */
     1410/* #line 1410 "configure" */
    13511411public class Test {
    13521412}
     
    15181578        ac_cv_prog_uudecode_base64=yes
    15191579else
    1520         echo "configure: 1520: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
     1580        echo "configure: 1580: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
    15211581        echo "configure: failed file was:" >&5
    15221582        cat Test.uue >&5
     
    16361696CLASS_TEST=Test.class
    16371697cat << \EOF > $JAVA_TEST
    1638 /* #line 1638 "configure" */
     1698/* #line 1698 "configure" */
    16391699public class Test {
    16401700}
     
    16731733TEST=Test
    16741734cat << \EOF > $JAVA_TEST
    1675 /* [#]line 1675 "configure" */
     1735/* [#]line 1735 "configure" */
    16761736public class Test {
    16771737public static void main (String args[]) {
     
    17651825
    17661826
    1767 
    1768 subdirs="$subdirs mg mgpp"
    1769 
     1827if test $ENABLE_MG = 1; then
     1828if test ! -d mg; then
     1829echo "***** Folder mg does not exist, cannot ENABLE_MG.";
     1830exit 1;
     1831fi
     1832
     1833
     1834subdirs="$subdirs mg"
     1835
     1836fi
     1837
     1838if test $ENABLE_MGPP = 1; then
     1839if test ! -d mgpp; then
     1840echo "***** Folder mgpp does not exist, cannot ENABLE_MGPP.";
     1841exit 1;
     1842fi
     1843
     1844
     1845subdirs="$subdirs mgpp"
     1846
     1847fi
     1848
     1849if test $ENABLE_LUCENE = 1; then
     1850if test ! -d lucene-gs; then
     1851echo "***** Folder lucene-gs does not exist, cannot ENABLE_LUCENE.";
     1852exit 1;
     1853fi
     1854fi
    17701855
    17711856          ac_config_files="$ac_config_files Makefile"
     
    24052490s,@LIBS@,$LIBS,;t t
    24062491s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
     2492s,@ENABLE_MG@,$ENABLE_MG,;t t
     2493s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
     2494s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
    24072495s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
    24082496s,@JAVAC@,$JAVAC,;t t
Note: See TracChangeset for help on using the changeset viewer.