Changeset 23356 for main/trunk/greenstone2/configure.in
- Timestamp:
- 2010-11-29T16:49:14+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/configure.in
r22378 r23356 6 6 7 7 PACKAGE=gsdl 8 VERSION=2. 82-svn8 VERSION=2.x-svn 9 9 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") 10 10 AC_DEFINE_UNQUOTED(VERSION, "$VERSION") … … 48 48 49 49 dnl 50 dnl Disable all Java compilation 51 dnl 52 AC_ARG_ENABLE(java, [ --disable-java Disable Java compilation], ENABLE_JAVA=$enableval, ENABLE_JAVA=yes) 53 if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then 54 ENABLE_JAVA=1 55 if test "x$JAVA_HOME" != "x" ; then 56 echo "Detected JAVA_HOME is set, however this will not be used during compilation" 57 echo "To control the version of 'javac' and 'java' set environment variables JAVAC" 58 echo "and JAVA respectively" 59 export JAVA_HOME= 60 fi 61 else 62 ENABLE_JAVA=0 63 fi 64 AC_SUBST(ENABLE_JAVA) 65 66 dnl 50 67 dnl Set use of z39.50 51 68 dnl … … 74 91 dnl Set use of JDBM (enabled by default) 75 92 dnl 76 AC_ARG_ENABLE(jdbm, [ --disable-jdbm Disable JDBM compilation], USE_JDBM=$enableval, USE_JDBM=yes)77 if test $ USE_JDBM = "yes" -o $USE_JDBM = "1"; then93 AC_ARG_ENABLE(jdbm, [ --disable-jdbm Disable JDBM compilation], USE_JDBM=$enableval, USE_JDBM=yes) 94 if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then 78 95 USE_JDBM=1 79 96 AC_DEFINE(USE_JDBM,[]) … … 86 103 dnl Set use of GDBM (enabled by default) 87 104 dnl 88 AC_ARG_ENABLE(gdbm, [ --disable-gdbm Disable GDBM compilation], USE_GDBM=$enableval, USE_GDBM=yes)105 AC_ARG_ENABLE(gdbm, [ --disable-gdbm Disable GDBM compilation], USE_GDBM=$enableval, USE_GDBM=yes) 89 106 if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then 90 107 USE_GDBM=1 … … 123 140 dnl 124 141 if test -d runtime-src; then 125 AC_ARG_ENABLE(apache-httpd, [ --enable-apache-httpd Enable Apache httpd support], USE_APACHE_HTTPD=$enableval, USE_APACHE_HTTPD=no)142 AC_ARG_ENABLE(apache-httpd, [ --enable-apache-httpd Enable Apache httpd support], USE_APACHE_HTTPD=$enableval, USE_APACHE_HTTPD=no) 126 143 if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then 127 144 USE_APACHE_HTTPD=1 … … 136 153 dnl Set compilation of JNI parts of MG and MGPP indexers (disabled by default, which is GS2's default behaviour) 137 154 dnl 138 AC_ARG_ENABLE(jni, [ --enable-jni Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no)139 if test $ENABLE_J NI = "yes" -o $ENABLE_JNI = "1"; then155 AC_ARG_ENABLE(jni, [ --enable-jni Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no) 156 if test $ENABLE_JAVA = "1" -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then 140 157 ENABLE_JNI=1 141 158 AC_DEFINE(ENABLE_JNI,[]) … … 148 165 dnl Set compilation of MG (enabled by default) 149 166 dnl 150 AC_ARG_ENABLE(mg, [ --disable-mg Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)167 AC_ARG_ENABLE(mg, [ --disable-mg Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes) 151 168 if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then 152 169 ENABLE_MG=1 … … 161 178 dnl Set compilation of MGPP (enabled by default) 162 179 dnl 163 AC_ARG_ENABLE(mgpp, [ --disable-mgpp Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)180 AC_ARG_ENABLE(mgpp, [ --disable-mgpp Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes) 164 181 if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then 165 182 ENABLE_MGPP=1 … … 174 191 dnl 175 192 AC_ARG_ENABLE(lucene, [ --disable-lucene Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes) 176 if test $ENABLE_ LUCENE = "yes" -o $ENABLE_LUCENE = "1"; then193 if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then 177 194 ENABLE_LUCENE=1 178 195 AC_DEFINE(ENABLE_LUCENE,[])
Note:
See TracChangeset
for help on using the changeset viewer.