Changeset 131

Show
Ignore:
Timestamp:
26/10/08 16:40:39 (3 months ago)
Author:
smoku
Message:

Added dmalloc support

Location:
jggtrans
Files:
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • jggtrans/configure.ac

    r105 r131  
    2828AC_ARG_WITH([efence],AC_HELP_STRING([--with-efence],[Link against ElectricFence library])) 
    2929 
     30AC_ARG_WITH([dmalloc],AC_HELP_STRING([--with-dmalloc],[Link against dmalloc library])) 
     31 
    3032if test "x$enable_debug" != "xno" ; then 
    3133        AC_DEFINE(DEBUG,1,[Define to enable debugging code]) 
     
    3436if test "x$with_efence" = "xyes" ; then 
    3537        AC_CHECK_LIB([efence], [malloc]) 
     38fi 
     39 
     40if test "x$with_dmalloc" = "xyes" ; then 
     41        AC_CHECK_LIB([dmalloc], [malloc]) 
     42        AC_DEFINE(DMALLOC,1,[Define to enable dmalloc]) 
     43        AC_DEFINE(DMALLOC_FUNC_CHECK,1,[Define to enable dmalloc function arguments check]) 
    3644fi 
    3745 
  • jggtrans/src/ggtrans.h

    r34 r131  
    3333#endif 
    3434 
     35#ifdef DMALLOC 
     36#include "dmalloc.h" 
     37#endif 
     38 
    3539#ifdef ENABLE_NLS 
    3640/* gettext shortcut for translating messages */