0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-01 17:48:56 +02:00

configure: Default to not requiring --enable-jemalloc if detected and not otherwise disabled.

This commit is contained in:
Jason Volk 2020-04-05 13:10:30 -07:00
parent 1f628530c5
commit d7d8741a8e

View file

@ -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