AC_SUBST(PATCH_VERSION, `echo $PACKAGE_VERSION | sed 's/.*\..*\.\(.*\)/\1/g'`)
AC_SUBST(NUMBER_VERSION, `printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`)
-opt_dmalloc_mode=no
-AC_MSG_CHECKING([whether in dmalloc mode])
-AC_ARG_ENABLE(dmalloc-mode,
- AS_HELP_STRING([--enable-dmalloc-mode], [enable dmalloc mode]),
- opt_dmalloc_mode=$enableval)
-AC_MSG_RESULT($opt_dmalloc_mode)
-
-opt_efence_mode=no
-AC_MSG_CHECKING([whether in electric fence mode])
-AC_ARG_ENABLE(efence-mode,
- AS_HELP_STRING([--enable-efence-mode], [enable electric fence mode]),
-opt_efence_mode=$enableval)
-AC_MSG_RESULT($opt_efence_mode)
-
opt_developer_mode=no
AC_MSG_CHECKING([whether to enable compiler warnings])
AC_ARG_ENABLE(developer-mode,
AC_MSG_RESULT($_gcc_gnu89_inline)
CFLAGS="$_gcc_cflags_save"
- if test x$opt_dmalloc_mode = xyes; then
- AC_CHECK_LIB(dmalloc, main)
- AC_DEFINE(USE_DMALLOC, 1, [enable the use of dmalloc])
- else
- if test x$opt_efence_mode = xyes; then
- AC_CHECK_LIB(efence, main)
- AC_DEFINE(USE_EFENCE, 1, [use electric fence])
- fi
- fi
-
AC_MSG_CHECKING([whether we have GNU assembler])
GAS=`as --version < /dev/null 2>/dev/null | grep GNU`
if test "$GAS"; then