Allow disabling tbbmalloc on Unix by using: --with-std-malloc

This commit is contained in:
XTZGZoReX 2009-11-11 22:20:07 +01:00
parent 4ac1bcc37a
commit 5bb8d60a67

View file

@ -151,6 +151,26 @@ else
AC_MSG_RESULT($DO_MYSQL)
fi
## Check for memory allocator
# Use libc-malloc or libtbb-malloc?
AC_MSG_CHECKING(whether to use libc malloc)
MANGOSD_STD_MALLOC=no
AC_ARG_WITH(std-malloc,
[
Memory allocation options:
--with-std-malloc Use standard malloc],
[
if test "$withval" = "yes" ; then
CFLAGS="-DUSE_STANDARD_MALLOC $CFLAGS"
CXXFLAGS="-DUSE_STANDARD_MALLOC $CXXFLAGS"
MANGOSD_STD_MALLOC=yes
elif test "$withval" != "no" ; then
AC_MSG_ERROR(Please choose yes or no)
fi
])
AC_MSG_RESULT($MANGOSD_STD_MALLOC)
## Check for options
# Include debug info in library?
AC_MSG_CHECKING(whether to include debug info in library)