3 @@ -336,6 +336,7 @@ libssh2=""
9 # parse CC options first
11 @@ -1134,6 +1135,10 @@ for opt do
13 --enable-numa) numa="yes"
15 + --disable-jemalloc) jemalloc="no"
17 + --enable-jemalloc) jemalloc="yes"
20 echo "ERROR: unknown option $opt"
21 echo "Try '$0 --help' for more information"
22 @@ -1407,6 +1412,8 @@ Advanced options (experts only):
23 --enable-quorum enable quorum block filter support
24 --disable-numa disable libnuma support
25 --enable-numa enable libnuma support
26 + --disable-jemalloc disable jemalloc support
27 + --enable-numa enable jemalloc support
29 NOTE: The object files are built at the place where configure is launched
31 @@ -3325,6 +3332,22 @@ EOF
34 ##########################################
37 +if test "$jemalloc" = "yes" ; then
40 +int main(void) { malloc(1); return 0; }
43 + if compile_prog "" "-ljemalloc" ; then
44 + LIBS="-ljemalloc $LIBS"
46 + feature_not_found "jemalloc" "install jemalloc devel"
50 +##########################################
54 @@ -4435,6 +4458,7 @@ echo "lzo support $lzo"
55 echo "snappy support $snappy"
56 echo "bzip2 support $bzip2"
57 echo "NUMA host support $numa"
58 +echo "jemalloc support $jemalloc"
60 if test "$sdl_too_old" = "yes"; then
61 echo "-> Your SDL version is too old - please upgrade to have SDL support"