mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
configure: Default to not requiring --enable-jemalloc if detected and not otherwise disabled.
This commit is contained in:
parent
1f628530c5
commit
d7d8741a8e
1 changed files with 7 additions and 7 deletions
14
configure.ac
14
configure.ac
|
@ -1909,17 +1909,17 @@ AC_CHECK_LIB(jemalloc, malloc,
|
|||
have_jemalloc="no"
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING(whether to enable use of jemalloc)
|
||||
AC_ARG_ENABLE(jemalloc, AC_HELP_STRING([--enable-jemalloc], [Use jemalloc as third-party dynamic memory manager.]),
|
||||
AC_MSG_CHECKING(whether to enable use of any found jemalloc)
|
||||
AC_ARG_ENABLE(jemalloc, AC_HELP_STRING([--disable-jemalloc], [Disable jemalloc as third-party dynamic memory manager.]),
|
||||
[
|
||||
use_jemalloc="yes"
|
||||
AC_MSG_RESULT([yes])
|
||||
], [
|
||||
use_jemalloc="no"
|
||||
AC_MSG_RESULT([no])
|
||||
enable_jemalloc="no"
|
||||
], [
|
||||
AC_MSG_RESULT([yes])
|
||||
enable_jemalloc="yes"
|
||||
])
|
||||
|
||||
AM_CONDITIONAL([JEMALLOC], [test "x$have_jemalloc" = "xyes" && test "x$use_jemalloc" = "xyes" ])
|
||||
AM_CONDITIONAL([JEMALLOC], [test "x$have_jemalloc" = "xyes" && test "x$enable_jemalloc" = "xyes" ])
|
||||
|
||||
dnl
|
||||
dnl
|
||||
|
|
Loading…
Reference in a new issue