Changeset 68

Show
Ignore:
Timestamp:
01/30/02 17:28:29 (7 years ago)
Author:
jajcus
Message:

- debug code enabled by default (without this users cannot send usefull bug reports)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/autogen.sh

    r33 r68  
    6969autoconf 
    7070 
    71 ./configure --enable-debug "$@" 
     71./configure --with-efence "$@" 
    7272 
    7373echo  
  • trunk/configure.ac

    r56 r68  
    1717AC_CHECK_LIB([gg], [gg_login],[],AC_MSG_ERROR("You need libgg (from ekg package) to compile this.")) 
    1818 
    19 AC_ARG_ENABLE(debug, 
    20                 AC_HELP_STRING([--enable-debug],[Enable debugging code]), 
    21                [DEBUG=yes],[DEBUG=no]
     19AC_ARG_ENABLE(debug,AC_HELP_STRING([--disable-debug],[Disable debugging code])) 
     20 
     21AC_ARG_WITH(efence,AC_HELP_STRING([--with-efence],[Link against ElectricFence library])
    2222 
    2323AH_TEMPLATE([DEBUG],[Define to enable debugging code]) 
    24 if test "x$DEBUG" = "xyes" ; then 
    25 AC_DEFINE(DEBUG) 
    26 AC_CHECK_LIB([efence], [malloc]) 
     24if test "x$enable_debug" != "xno" ; then 
     25        AC_DEFINE(DEBUG,1) 
     26fi 
     27 
     28if test "x$with_efence" != "xno" ; then 
     29        AC_CHECK_LIB([efence], [malloc]) 
    2730fi 
    2831