From ac5db02034c01357a4ce90504886046a58117921 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Tue, 11 Aug 2015 14:01:59 +0900 Subject: [PATCH] Make --enable-tls and --enable-lazy-lock take precedence over configure.ac-hardcoded defaults --- configure.ac | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 502dd39c..6f44b6c3 100644 --- a/configure.ac +++ b/configure.ac @@ -1246,9 +1246,9 @@ else enable_lazy_lock="1" fi ], -[enable_lazy_lock="0"] +[enable_lazy_lock=""] ) -if test "x$enable_lazy_lock" = "x0" -a "x${force_lazy_lock}" = "x1" ; then +if test "x$enable_lazy_lock" = "x" -a "x${force_lazy_lock}" = "x1" ; then AC_MSG_RESULT([Forcing lazy-lock to avoid allocator/threading bootstrap issues]) enable_lazy_lock="1" fi @@ -1261,6 +1261,8 @@ if test "x$enable_lazy_lock" = "x1" ; then ]) fi AC_DEFINE([JEMALLOC_LAZY_LOCK], [ ]) +else + enable_lazy_lock="0" fi AC_SUBST([enable_lazy_lock]) @@ -1272,13 +1274,13 @@ else enable_tls="1" fi , -enable_tls="1" +enable_tls="" ) -if test "x${enable_tls}" = "x0" -a "x${force_tls}" = "x1" ; then +if test "x${enable_tls}" = "x" -a "x${force_tls}" = "x1" ; then AC_MSG_RESULT([Forcing TLS to avoid allocator/threading bootstrap issues]) enable_tls="1" fi -if test "x${enable_tls}" = "x1" -a "x${force_tls}" = "x0" ; then +if test "x${enable_tls}" = "x" -a "x${force_tls}" = "x0" ; then AC_MSG_RESULT([Forcing no TLS to avoid allocator/threading bootstrap issues]) enable_tls="0" fi @@ -1295,6 +1297,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM( AC_MSG_RESULT([yes]), AC_MSG_RESULT([no]) enable_tls="0") +else + enable_tls="0" fi AC_SUBST([enable_tls]) if test "x${enable_tls}" = "x1" ; then