Ignore:
Timestamp:
2009-12-16T14:09:53+13:00 (14 years ago)
Author:
ak19
Message:

New configuration and compilation flag ENABLE_JNI added which will be disabled by default for GS2 since in general GS doesn't need mg and mgpp compiled up with jni. GS3

File:
1 edited

Legend:

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

    r21328 r21364  
    275275ac_subdirs_all="$ac_subdirs_all mg"
    276276ac_subdirs_all="$ac_subdirs_all 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 ENABLE_MG ENABLE_MGPP ENABLE_LUCENE COMPAT32BITFLAGS JAVAC JAVA uudecode subdirs LIBOBJS LTLIBOBJS'
     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_JNI ENABLE_MG ENABLE_MGPP ENABLE_LUCENE COMPAT32BITFLAGS JAVAC JAVA uudecode subdirs LIBOBJS LTLIBOBJS'
    278278ac_subst_files=''
    279279
     
    787787  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    788788  --disable-accentfolding    Disable Accent Folding support
     789  --enable-jni    Enable JNI compilation
    789790  --disable-mg        Disable MG compilation
    790791  --disable-mgpp        Disable MGPP compilation
     
    12461247
    12471248
     1249# Check whether --enable-jni or --disable-jni was given.
     1250if test "${enable_jni+set}" = set; then
     1251  enableval="$enable_jni"
     1252  ENABLE_JNI=$enableval
     1253else
     1254  ENABLE_JNI=no
     1255fi;
     1256if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
     1257  ENABLE_JNI=1
     1258  cat >>confdefs.h <<\_ACEOF
     1259#define ENABLE_JNI
     1260_ACEOF
     1261
     1262else
     1263  ENABLE_JNI=0
     1264fi
     1265
     1266
     1267
    12481268# Check whether --enable-mg or --disable-mg was given.
    12491269if test "${enable_mg+set}" = set; then
     
    14081428CLASS_TEST=Test.class
    14091429cat << \EOF > $JAVA_TEST
    1410 /* #line 1410 "configure" */
     1430/* #line 1430 "configure" */
    14111431public class Test {
    14121432}
     
    15781598        ac_cv_prog_uudecode_base64=yes
    15791599else
    1580         echo "configure: 1580: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
     1600        echo "configure: 1600: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
    15811601        echo "configure: failed file was:" >&5
    15821602        cat Test.uue >&5
     
    16961716CLASS_TEST=Test.class
    16971717cat << \EOF > $JAVA_TEST
    1698 /* #line 1698 "configure" */
     1718/* #line 1718 "configure" */
    16991719public class Test {
    17001720}
     
    17331753TEST=Test
    17341754cat << \EOF > $JAVA_TEST
    1735 /* [#]line 1735 "configure" */
     1755/* [#]line 1755 "configure" */
    17361756public class Test {
    17371757public static void main (String args[]) {
     
    24902510s,@LIBS@,$LIBS,;t t
    24912511s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
     2512s,@ENABLE_JNI@,$ENABLE_JNI,;t t
    24922513s,@ENABLE_MG@,$ENABLE_MG,;t t
    24932514s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
Note: See TracChangeset for help on using the changeset viewer.