Merge branch '3548-without-system-jemalloc' into 'main'

A more helpful error when --without-jemalloc is impossible

Closes #3548

See merge request isc-projects/bind9!6796
This commit is contained in:
Tony Finch 2022-09-22 08:40:02 +00:00
commit ea57da8717

View file

@ -1400,7 +1400,10 @@ AS_CASE([$with_jemalloc],
with_jemalloc=no])])
AS_IF([test "$with_jemalloc" = "no"],
[AC_CHECK_FUNCS([malloc_size malloc_usable_size])])
[AS_CASE([$host],
[*-freebsd*],[AC_MSG_ERROR([You cannot compile without jemalloc; jemalloc is the system allocator on FreeBSD])],
[*-netbsd*],[AC_MSG_ERROR([You cannot compile without jemalloc; jemalloc is the system allocator on NetBSD])])
AC_CHECK_FUNCS([malloc_size malloc_usable_size])])
AM_CONDITIONAL([HAVE_JEMALLOC], [test "$with_jemalloc" = "yes"])