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.

Location:
main/trunk/greenstone2/common-src
Files:
3 edited

Legend:

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

    r21440 r21446  
    3636dnl Set use of corba
    3737dnl
    38 AC_ARG_ENABLE(corba, [  --enable-corba          Enable CORBA support], USE_CORBA=1, USE_CORBA=0)
    39 AC_DEFINE_UNQUOTED(USE_CORBA, $USE_CORBA)
     38AC_ARG_ENABLE(corba, [  --enable-corba          Enable CORBA support], USE_CORBA=$enableval, USE_CORBA=no)
     39if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
     40  USE_CORBA=1
     41  AC_DEFINE(USE_CORBA,[])
     42else
     43  USE_CORBA=0
     44fi
    4045AC_SUBST(USE_CORBA)
    4146
     
    4752dnl Set use of z39.50
    4853dnl
    49 AC_ARG_ENABLE(z3950, [  --enable-z3950          Enable Z39.50 client support], USE_Z3950=1, USE_Z3950=0)
    50 if test USE_Z3950 = 1; then
    51 AC_DEFINE(USE_Z3950, $USE_Z3950)
     54AC_ARG_ENABLE(z3950, [  --enable-z3950          Enable Z39.50 client support], USE_Z3950=$enableval, USE_Z3950=no)
     55if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
     56  USE_Z3950=1
     57  AC_DEFINE(USE_Z3950,[])
     58else
     59  USE_Z3950=0
     60fi
    5261AC_SUBST(USE_Z3950)
    53 fi
    5462
    5563dnl
    5664dnl Set use of yaz - now compiled by default even when z3950 support not required
    5765dnl
    58 AC_ARG_ENABLE(yaz, [  --disable-yaz           Disable YAZ compilation], USE_YAZ=0, USE_YAZ=1)
    59 dnl if test USE_YAZ = 1; then
    60 AC_DEFINE(USE_YAZ, $USE_YAZ)
     66AC_ARG_ENABLE(yaz, [  --disable-yaz           Disable YAZ compilation], USE_YAZ=$enableval, USE_YAZ=yes)
     67if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
     68  USE_YAZ=1
     69  AC_DEFINE(USE_YAZ,[])
     70else
     71  USE_YAZ=0
     72fi
    6173AC_SUBST(USE_YAZ)
    62 dnl fi
    6374
    6475dnl
    6576dnl disable compilation of accent folding stuff for mgpp (and one day mg)
    6677dnl
    67 AC_ARG_ENABLE(accentfold, [  --disable-accentfold    Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1)
    68 AC_DEFINE(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD)
     78AC_ARG_ENABLE(accentfold, [  --disable-accentfold    Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes)
     79if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
     80  ENABLE_ACCENTFOLD=1
     81  AC_DEFINE(ENABLE_ACCENTFOLD,[])
     82else
     83  ENABLE_ACCENTFOLD=0
     84fi
    6985AC_SUBST(ENABLE_ACCENTFOLD)
    7086
     
    84100dnl Set use of SQLite (enabled by default)
    85101dnl
    86 AC_ARG_ENABLE(sqlite, [  --disable-sqlite        Disable SQLite support], USE_SQLITE=0, USE_SQLITE=1)
    87 AC_DEFINE(USE_SQLITE, $USE_SQLITE)
     102AC_ARG_ENABLE(sqlite, [  --disable-sqlite        Disable SQLite support], USE_SQLITE=$enableval, USE_SQLITE=yes)
     103if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
     104  USE_SQLITE=1
     105  AC_DEFINE(USE_SQLITE,[])
     106else
     107  USE_SQLITE=0
     108fi
    88109AC_SUBST(USE_SQLITE)
    89110
  • main/trunk/greenstone2/common-src/indexers/configure.ac

    r21364 r21446  
    66dnl http://www.gnu.org/software/hello/manual/autoconf/Initializing-configure.html
    77AC_INIT()
    8 AC_ARG_ENABLE(accentfolding, [  --disable-accentfolding    Disable Accent Folding support], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1)
    9 AC_DEFINE_UNQUOTED(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD)
     8AC_ARG_ENABLE(accentfold, [  --disable-accentfold    Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes)
     9if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
     10  ENABLE_ACCENTFOLD=1
     11  AC_DEFINE(ENABLE_ACCENTFOLD,[])
     12else
     13  ENABLE_ACCENTFOLD=0
     14fi
    1015AC_SUBST(ENABLE_ACCENTFOLD)
    1116
  • main/trunk/greenstone2/common-src/indexers/mgpp/configure.in

    r20845 r21446  
    4040dnl disable compilation of accent folding stuff for mgpp (and one day mg)
    4141dnl
    42 AC_ARG_ENABLE(accentfold, [  --disable-accentfold          Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1)
    43 AC_DEFINE(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD)
     42AC_ARG_ENABLE(accentfold, [  --disable-accentfold    Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes)
     43if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
     44  ENABLE_ACCENTFOLD=1
     45  AC_DEFINE(ENABLE_ACCENTFOLD,[])
     46else
     47  ENABLE_ACCENTFOLD=0
     48fi
    4449AC_SUBST(ENABLE_ACCENTFOLD)
    4550
Note: See TracChangeset for help on using the changeset viewer.