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/common-src/packages/configure

    r21873 r22058  
    2222ENVIRONMENT=""
    2323
     24# GDBM support enabled by default, can switch it off with --disable-jdbm
     25USE_GDBM=1
    2426# JDBM support enabled by default, can switch it off with --disable-jdbm
    25 ENABLE_JDBM=1
     27USE_JDBM=1
    2628# SQLite support enabled by default, can switch it off with --disable-sqlite
    2729USE_SQLITE=true
     
    5153        fi
    5254        ;;
     55    --disable-gdbm)
     56        USE_GDBM=0
     57        ;;
    5358    --disable-jdbm)
    54         ENABLE_JDBM=0
     59        USE_JDBM=0
    5560        ;;
    5661    --disable-sqlite)
     
    200205echo ""
    201206echo "Configuring GDBM"
    202 echo ""
    203 cd "$PACKAGES/gdbm"
    204 
    205 echo CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --disable-shared --prefix=$PACKAGES/gdbm $HOSTTARGETFLAGS $ENVIRONMENT
    206 
    207 cd "$PACKAGES/gdbm/gdbm-1.8.3" && \
    208 CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --disable-shared --prefix=$PACKAGES/gdbm $HOSTTARGETFLAGS $ENVIRONMENT
    209 
     207if test $USE_GDBM  ;
     208then
     209    echo ""
     210    cd "$PACKAGES/gdbm"
     211
     212    echo CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --disable-shared --prefix=$PACKAGES/gdbm $HOSTTARGETFLAGS $ENVIRONMENT
     213
     214    cd "$PACKAGES/gdbm/gdbm-1.8.3" && \
     215    CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --disable-shared --prefix=$PACKAGES/gdbm $HOSTTARGETFLAGS $ENVIRONMENT
     216else
     217  echo " GDBM support disabled."
     218  echo "  add '--enable-gdbm' to the configure command to include GDBM support."
     219  echo ""
     220fi
    210221
    211222# configure JDBM
    212223echo ""
    213224echo "Configuring JDBM"
    214 if test $ENABLE_JDBM  ;
     225if test $USE_JDBM  ;
    215226then
    216227  echo ""
Note: See TracChangeset for help on using the changeset viewer.