mirror of
https://github.com/mangosfour/server.git
synced 2026-01-28 16:37:11 +00:00
Allow disabling tbbmalloc on Unix by using: --with-std-malloc
This commit is contained in:
parent
4ac1bcc37a
commit
5bb8d60a67
1 changed files with 20 additions and 0 deletions
20
configure.ac
20
configure.ac
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue