From cf06c3fbc53df758dd022acd351aeb3988b9ed8e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 22 Jan 2016 22:37:45 +0900 Subject: [PATCH] Simplify --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 33f461cf..cf8d33cb 100644 --- a/configure.ac +++ b/configure.ac @@ -352,7 +352,6 @@ if test "x${request_jemalloc}" != "xno"; then LIBS_OLD=$LIBS AC_SEARCH_LIBS([malloc_stats_print], [jemalloc], [have_jemalloc=yes], [], [$PTHREAD_LDFLAGS]) - LIBS=$LIBS_OLD if test "x${have_jemalloc}" = "xyes"; then jemalloc_libs=${ac_cv_search_malloc_stats_print} @@ -360,13 +359,14 @@ if test "x${request_jemalloc}" != "xno"; then # On Darwin, malloc_stats_print is je_malloc_stats_print AC_SEARCH_LIBS([je_malloc_stats_print], [jemalloc], [have_jemalloc=yes], [], [$PTHREAD_LDFLAGS]) - LIBS=$LIBS_OLD if test "x${have_jemalloc}" = "xyes"; then jemalloc_libs=${ac_cv_search_je_malloc_stats_print} fi fi + LIBS=$LIBS_OLD + if test "x${have_jemalloc}" = "xyes" && test "x${jemalloc_libs}" != "xnone required"; then JEMALLOC_LIBS=${jemalloc_libs}