summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2012-04-23 20:04:55 (GMT)
committerJason Evans <je@fb.com>2012-04-23 20:04:55 (GMT)
commit6716aa83526b3f866d73a033970cc920bc61c13f (patch)
tree58cab38c9218ba5e9704b67681e6bed04ef04a07 /configure.ac
parent079687bb87e2ac13274c2c4ff1134d42a78e9c7a (diff)
downloadjemalloc-6716aa83526b3f866d73a033970cc920bc61c13f.zip
jemalloc-6716aa83526b3f866d73a033970cc920bc61c13f.tar.gz
jemalloc-6716aa83526b3f866d73a033970cc920bc61c13f.tar.bz2
Force use of TLS if heap profiling is enabled.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7338990..98211c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -678,6 +678,10 @@ fi
AC_MSG_CHECKING([configured backtracing method])
AC_MSG_RESULT([$backtrace_method])
if test "x$enable_prof" = "x1" ; then
+ if test "x${force_tls}" = "x0" ; then
+ AC_MSG_ERROR([Heap profiling requires TLS]);
+ fi
+ force_tls="1"
AC_DEFINE([JEMALLOC_PROF], [ ])
fi
AC_SUBST([enable_prof])