From 8d89d86927f3631d6d8be8eacb30460daf13aa74 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Thu, 10 Jan 2019 14:39:14 +1100 Subject: [PATCH] configure: refuse to build with jemalloc when header is missing --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dc3bdf06c0..dec65d4e98 100644 --- a/configure.ac +++ b/configure.ac @@ -1097,7 +1097,8 @@ AS_IF([test "x$with_jemalloc" != xno],[ [test x$with_jemalloc = xyes && with_jemalloc=no]) AC_CHECK_HEADER(jemalloc/jemalloc.h, [ AC_DEFINE(RUBY_ALTERNATIVE_MALLOC_HEADER, []) - ]) + ], + [test x$with_jemalloc = xyes && with_jemalloc=no]) AS_IF([test "x$with_jemalloc" != xyes], [ AC_CACHE_CHECK([for jemalloc with JEMALLOC_MANGLE], rb_cv_jemalloc_demangle, [AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@define JEMALLOC_MANGLE 1 -- 2.20.1