Ignore:
Timestamp:
01/04/10 23:36:22 (11 years ago)
Author:
davidb
Message:

Correction to how --enable-jdbm flag is implemented

File:
1 edited

Legend:

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

    r21409 r21417  
    7070dnl Set use of JDBM (enabled by default)
    7171dnl
    72 AC_ARG_ENABLE(jdbm, [  --disable-jdbm        Disable JDBM support], USE_JDBM=0, USE_JDBM=1)
    73 AC_DEFINE(USE_JDBM, $USE_JDBM)
    74 AC_SUBST(USE_JDBM)
     72dnl
     73dnl Set use of JDBM (enabled by default)
     74dnl
     75AC_ARG_ENABLE(jdbm, [  --disable-jdbm        Disable JDBM compilation], ENABLE_JDBM=$enableval, ENABLE_JDBM=yes)
     76if test $ENABLE_JDBM = "yes" -o $ENABLE_JDBM = "1" ; then
     77  ENABLE_JDBM=1
     78  AC_DEFINE(ENABLE_JDBM,[])
     79else
     80  ENABLE_JDBM=0
     81fi
     82AC_SUBST(ENABLE_JDBM)
    7583
    7684dnl
Note: See TracChangeset for help on using the changeset viewer.