summaryrefslogtreecommitdiffstats
path: root/jemalloc/configure.ac
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2010-10-24 01:37:06 (GMT)
committerJason Evans <jasone@canonware.com>2010-10-24 01:37:06 (GMT)
commite73397062ac3ab28a9d377591b63ed19fd154cca (patch)
treed78dbc832be4e8c8b504017bc15f0256f91e033d /jemalloc/configure.ac
parente4f7846f1fd279a039ffa2a41707348187219de4 (diff)
downloadjemalloc-e73397062ac3ab28a9d377591b63ed19fd154cca.zip
jemalloc-e73397062ac3ab28a9d377591b63ed19fd154cca.tar.gz
jemalloc-e73397062ac3ab28a9d377591b63ed19fd154cca.tar.bz2
Replace JEMALLOC_OPTIONS with MALLOC_CONF.
Replace the single-character run-time flags with key/value pairs, which can be set via the malloc_conf global, /etc/malloc.conf, and the MALLOC_CONF environment variable. Replace the JEMALLOC_PROF_PREFIX environment variable with the "opt.prof_prefix" option. Replace umax2s() with u2s().
Diffstat (limited to 'jemalloc/configure.ac')
-rw-r--r--jemalloc/configure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/jemalloc/configure.ac b/jemalloc/configure.ac
index b27955d..b613cb1 100644
--- a/jemalloc/configure.ac
+++ b/jemalloc/configure.ac
@@ -256,9 +256,13 @@ else
fi]
)
if test "x$JEMALLOC_PREFIX" != "x" ; then
- AC_DEFINE([JEMALLOC_PREFIX], [ ])
+ JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
+ AC_DEFINE_UNQUOTED([JEMALLOC_PREFIX], ["$JEMALLOC_PREFIX"])
+ AC_DEFINE_UNQUOTED([JEMALLOC_CPREFIX], ["$JEMALLOC_CPREFIX"])
jemalloc_prefix="$JEMALLOC_PREFIX"
+ jemalloc_cprefix="$JEMALLOC_CPREFIX"
AC_SUBST([jemalloc_prefix])
+ AC_SUBST([jemalloc_cprefix])
AC_DEFINE_UNQUOTED([JEMALLOC_P(string_that_no_one_should_want_to_use_as_a_jemalloc_API_prefix)], [${JEMALLOC_PREFIX}##string_that_no_one_should_want_to_use_as_a_jemalloc_API_prefix])
fi
@@ -325,6 +329,15 @@ if test "x$enable_debug" = "x1" ; then
AC_DEFINE([JEMALLOC_IVSALLOC], [ ])
fi
AC_SUBST([enable_debug])
+if test "x$enable_debug" = "x0" ; then
+ roff_debug=".\\\" "
+ roff_no_debug=""
+else
+ roff_debug=""
+ roff_no_debug=".\\\" "
+fi
+AC_SUBST([roff_debug])
+AC_SUBST([roff_no_debug])
dnl Only optimize if not debugging.
if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then