1
1

- Add --enable-mem-profile, per Rob's request

- Rename MEMZERO -> MEM_ZERO to be similar to MEM_PROFILE

This commit was SVN r126.
Этот коммит содержится в:
Jeff Squyres 2004-01-08 18:55:38 +00:00
родитель 241a3aed98
Коммит 55bb08acce

Просмотреть файл

@ -7,22 +7,40 @@ AC_DEFUN(LAM_CONFIGURE_OPTIONS,[
lam_show_subtitle "Configuration options" lam_show_subtitle "Configuration options"
# #
# Purify clean # "Purify" clean
# #
AC_MSG_CHECKING([whether to enable memory zeroing]) AC_MSG_CHECKING([whether to enable memory zeroing])
AC_ARG_ENABLE(memzero, AC_ARG_ENABLE(mem-zero,
AC_HELP_STRING([--enable-memzero], AC_HELP_STRING([--enable-mem-zero],
[enable memory zeroing (debugging only) (default: disabled)])) [enable memory zeroing for memory-checking debuggers (debugging only) (default: disabled)]))
if test "$enable_memzero" = "yes"; then if test "$enable_mem-zero" = "yes"; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
WANT_MEMZERO=1 WANT_MEM_ZERO=1
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
WANT_MEMZERO=0 WANT_MEM_ZERO=0
fi fi
AC_DEFINE_UNQUOTED(LAM_ENABLE_MEMZERO, $WANT_MEMZERO, AC_DEFINE_UNQUOTED(LAM_ENABLE_MEM_ZERO, $WANT_MEM_ZERO,
[Whether we want the LAM_MEMZERO macro to memset or not]) [Whether we want the LAM_MEM_ZERO macro to memset or not])
#
# Memory profiling
#
AC_MSG_CHECKING([whether to profile memory usage])
AC_ARG_ENABLE(mem-profile,
AC_HELP_STRING([--enable-mem-profile],
[enable memory profiling (debugging only) (default: disabled)]))
if test "$enable_mem_profile" = "yes"; then
AC_MSG_RESULT([yes])
WANT_MEM_PROFILE=1
else
AC_MSG_RESULT([no])
WANT_MEM_PROFILE=0
fi
AC_DEFINE_UNQUOTED(LAM_ENABLE_MEM_PROFILE, $WANT_MEM_PROFILE,
[Whether we want the memory profiling or not])
# #
# Developer debugging # Developer debugging