diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-04 19:34:03 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-04 19:34:03 +0000 |
commit | 22d8480e99d3079d3d328f6010ffe4f57a74901c (patch) | |
tree | 4fa71acf0605d502e63a44742619656c55e4250d /configure.in | |
parent | 2f73dbd084e64e8be1ced89c735d9d8b987ca94c (diff) | |
download | ruby-22d8480e99d3079d3d328f6010ffe4f57a74901c.tar.gz |
configure.in: add --with-jemalloc option
* configure.in: add --with-jemalloc option
[ruby-core:62912]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 790b3dfe0f..90219af803 100644 --- a/configure.in +++ b/configure.in @@ -1173,6 +1173,13 @@ AS_IF([test "x$with_gmp" != xno], with_gmp="$ac_cv_lib_gmp___gmpz_init" AS_IF([test -z "$with_gmp"], [with_gmp=no])]) +AC_ARG_WITH([jemalloc], + [AS_HELP_STRING([--with-jemalloc],[use jemalloc allocator])], + [with_jemalloc=yes], [with_jemalloc=no]) +AS_IF([test "x$with_jemalloc" = xyes],[ + AC_CHECK_LIB([jemalloc],[malloc_conf],[LIBS="-ljemalloc $LIBS"], + [AC_MSG_ERROR([jemalloc requested but not found])])]) + dnl check for large file stuff mv confdefs.h confdefs1.h : > confdefs.h |