Ignore:
Timestamp:
2010-01-12T16:25:17+13:00 (14 years ago)
Author:
ak19
Message:

Configure files updated to correctly set all the variables that can be ENABLED/DISABLED.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/configure.in

    r21432 r21446  
    3434dnl Set use of corba
    3535dnl
    36 AC_ARG_ENABLE(corba, [  --enable-corba          Enable CORBA support], USE_CORBA=1, USE_CORBA=0)
    37 AC_DEFINE_UNQUOTED(USE_CORBA, $USE_CORBA)
     36AC_ARG_ENABLE(corba, [  --enable-corba          Enable CORBA support], USE_CORBA=$enableval, USE_CORBA=no)
     37if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
     38  USE_CORBA=1
     39  AC_DEFINE(USE_CORBA,[])
     40else
     41  USE_CORBA=0
     42fi
    3843AC_SUBST(USE_CORBA)
    3944
     
    4550dnl Set use of z39.50
    4651dnl
    47 AC_ARG_ENABLE(z3950, [  --enable-z3950          Enable Z39.50 client support], USE_Z3950=1, USE_Z3950=0)
    48 if test USE_Z3950 = 1; then
    49 AC_DEFINE(USE_Z3950, $USE_Z3950)
     52AC_ARG_ENABLE(z3950, [  --enable-z3950          Enable Z39.50 client support], USE_Z3950=$enableval, USE_Z3950=no)
     53if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
     54  USE_Z3950=1
     55  AC_DEFINE(USE_Z3950,[])
     56else
     57  USE_Z3950=0
     58fi
    5059AC_SUBST(USE_Z3950)
    51 fi
    5260
    5361dnl
    5462dnl Set use of yaz - now compiled by default even when z3950 support not required
    5563dnl
    56 AC_ARG_ENABLE(yaz, [  --disable-yaz           Disable YAZ compilation], USE_YAZ=0, USE_YAZ=1)
    57 dnl if test USE_YAZ = 1; then
    58 AC_DEFINE(USE_YAZ, $USE_YAZ)
     64AC_ARG_ENABLE(yaz, [  --disable-yaz           Disable YAZ compilation], USE_YAZ=$enableval, USE_YAZ=yes)
     65if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
     66  USE_YAZ=1
     67  AC_DEFINE(USE_YAZ,[])
     68else
     69  USE_YAZ=0
     70fi
    5971AC_SUBST(USE_YAZ)
    60 dnl fi
    6172
    6273dnl
    6374dnl disable compilation of accent folding stuff for mgpp (and one day mg)
    6475dnl
    65 AC_ARG_ENABLE(accentfold, [  --disable-accentfold    Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1)
    66 AC_DEFINE(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD)
     76AC_ARG_ENABLE(accentfold, [  --disable-accentfold    Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes)
     77if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
     78  ENABLE_ACCENTFOLD=1
     79  AC_DEFINE(ENABLE_ACCENTFOLD,[])
     80else
     81  ENABLE_ACCENTFOLD=0
     82fi
    6783AC_SUBST(ENABLE_ACCENTFOLD)
    6884
    69 dnl
    70 dnl Set use of JDBM (enabled by default)
    71 dnl
    7285dnl
    7386dnl Set use of JDBM (enabled by default)
     
    8598dnl Set use of SQLite (enabled by default)
    8699dnl
    87 AC_ARG_ENABLE(sqlite, [  --disable-sqlite        Disable SQLite support], USE_SQLITE=0, USE_SQLITE=1)
    88 AC_DEFINE(USE_SQLITE, $USE_SQLITE)
     100AC_ARG_ENABLE(sqlite, [  --disable-sqlite        Disable SQLite support], USE_SQLITE=$enableval, USE_SQLITE=yes)
     101if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
     102  USE_SQLITE=1
     103  AC_DEFINE(USE_SQLITE,[])
     104else
     105  USE_SQLITE=0
     106fi
    89107AC_SUBST(USE_SQLITE)
    90108
     
    93111dnl
    94112if test -d runtime-src; then
    95    AC_ARG_ENABLE(apache-httpd, [  --enable-apache-httpd  Enable Apache httpd support], USE_APACHE_HTTPD=1, USE_APACHE_HTTPD=0)
    96    AC_DEFINE(USE_APACHE_HTTPD, $USE_APACHE_HTTPD)
     113   AC_ARG_ENABLE(apache-httpd, [  --enable-apache-httpd  Enable Apache httpd support], USE_APACHE_HTTPD=$enableval, USE_APACHE_HTTPD=no)
     114   if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
     115     USE_APACHE_HTTPD=1
     116     AC_DEFINE(USE_APACHE_HTTPD,[])
     117   else
     118     USE_APACHE_HTTPD=0
     119   fi
    97120   AC_SUBST(USE_APACHE_HTTPD)
    98121fi
     
    141164if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
    142165  ENABLE_LUCENE=1
    143   AC_DEFINE(ENABLE_LUCENE, [])
     166  AC_DEFINE(ENABLE_LUCENE,[])
    144167else
    145168  ENABLE_LUCENE=0
Note: See TracChangeset for help on using the changeset viewer.