Ignore:
Timestamp:
2010-05-06T21:23:54+12:00 (14 years ago)
Author:
ak19
Message:

Changes to makefiles to 1. incorporate USE_GDBM and USE_JDBM flags (and USE_SQLITE) in most places so that the DEFINES variable is set at all times. This is necessary to ensure that all classes that contain objects with gdbm and jdbm members are of a consistent size. Else we've had experience with Greenstone crashing with memory errors (to do with the similar ENABLE_indexer flags). 2. ENABLE_JDBM is now USE_JDBM. 3. Not everything works now. It still compiles the default way, but the disable-gdbm flag is causing trouble when compiling argdb in recpt since it uses that.

File:
1 edited

Legend:

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

    r21446 r22058  
    7171fi
    7272AC_SUBST(USE_YAZ)
     73
     74dnl
     75dnl Set use of JDBM (enabled by default)
     76dnl
     77AC_ARG_ENABLE(jdbm, [  --disable-jdbm        Disable JDBM compilation], USE_JDBM=$enableval, USE_JDBM=yes)
     78if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
     79  USE_JDBM=1
     80  AC_DEFINE(USE_JDBM,[])
     81else
     82  USE_JDBM=0
     83fi
     84AC_SUBST(USE_JDBM)
     85
     86dnl
     87dnl Set use of GDBM (enabled by default)
     88dnl
     89AC_ARG_ENABLE(gdbm, [  --disable-gdbm        Disable GDBM compilation], USE_GDBM=$enableval, USE_GDBM=yes)
     90if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
     91  USE_GDBM=1
     92  AC_DEFINE(USE_GDBM,[])
     93else
     94  USE_GDBM=0
     95fi
     96AC_SUBST(USE_GDBM)
    7397
    7498dnl
Note: See TracChangeset for help on using the changeset viewer.