Project

General

Profile

Feature #9113 ยป 0001-configure.in-add-with-jemalloc-option.patch

normalperson (Eric Wong), 05/13/2014 02:58 AM

View differences:

configure.in
1170 1170
   with_gmp="$ac_cv_lib_gmp___gmpz_init"
1171 1171
   AS_IF([test -z "$with_gmp"], [with_gmp=no])])
1172 1172

  
1173
dnl use jemalloc on GNU/Linux, assume non-GNU has a better malloc than glibc
1174
AC_ARG_WITH([jemalloc],
1175
  [AS_HELP_STRING([--with-jemalloc],
1176
    [use jemalloc allocator. Default is yes on GNU/Linux, no elsewhere])],
1177
  [],
1178
  [AS_CASE(["$target"], [*-linux-gnu], [with_jemalloc=yes], [with_jemalloc=no])])
1179
AS_IF([test "x$with_jemalloc" != xno],[
1180
  AC_CHECK_LIB([jemalloc],[malloc_conf],
1181
    [LIBS="-ljemalloc $LIBS"],
1182
    [AC_MSG_WARN([No jemalloc found, using system malloc])])])
1183

  
1173 1184
dnl check for large file stuff
1174 1185
mv confdefs.h confdefs1.h
1175 1186
: > confdefs.h
1176
-