diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-26 11:01:16 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-26 11:01:16 +0100 |
commit | 5dea3221bd62e5ddd0649b91826853718431a9d3 (patch) | |
tree | 4940e2a0d680873b34d1f294bd6a34e09f4572e8 | |
parent | a56bf34695f6d794e060d7b01b8e0e60fd9364c7 (diff) | |
download | rsyslog-5dea3221bd62e5ddd0649b91826853718431a9d3.tar.gz rsyslog-5dea3221bd62e5ddd0649b91826853718431a9d3.tar.bz2 rsyslog-5dea3221bd62e5ddd0649b91826853718431a9d3.zip |
add support for jemalloc (experimental)
-rw-r--r-- | configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8f74ebc7..7417c571 100644 --- a/configure.ac +++ b/configure.ac @@ -379,6 +379,22 @@ if test "$enable_inet" = "yes"; then AC_DEFINE(SYSLOG_INET, 1, [network support is integrated.]) fi +# jemalloc +AC_ARG_ENABLE(jemalloc, + [AS_HELP_STRING([--enable-jemalloc],[Enable jemalloc support @<:@default=no@:>@])], + [case "${enableval}" in + yes) enable_jemalloc="yes" ;; + no) enable_jemalloc="no" ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-jemalloc) ;; + esac], + [enable_jemalloc="no"] +) +AM_CONDITIONAL(ENABLE_JEMALLOC, test x$enable_jemalloc = xyes) +if test "$enable_jemalloc" = "yes"; then + AC_DEFINE(HAVE_JEMALLOC, 1, [jemalloc support is integrated.]) + RT_LIBS="$RT_LIBS -ljemalloc" +fi + # # The following define determines whether the package adheres to the |