X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_have_better_malloc.m4;h=6f46ee9ae802b5308d193cac3cc28ba3539da4ed;hb=98d4dea6ae8869b6fe5e37a2908d66ff062b8f39;hp=4563e3b5496298f6f27464c7d998e7098152ea12;hpb=8edeaed834e4a4396fb60647cdee7850c9c81de7;p=m6w6%2Flibmemcached diff --git a/m4/pandora_have_better_malloc.m4 b/m4/pandora_have_better_malloc.m4 index 4563e3b5..6f46ee9a 100644 --- a/m4/pandora_have_better_malloc.m4 +++ b/m4/pandora_have_better_malloc.m4 @@ -11,8 +11,16 @@ AC_DEFUN([PANDORA_HAVE_BETTER_MALLOC],[ AC_ARG_ENABLE([umem], [AS_HELP_STRING([--enable-umem], [Enable linking with libumem @<:@default=off@:>@])], - [ac_enable_umem="$enableval"], - [ac_enable_umem="no"]) + [ac_enable_umem="$enableval"],[ + case "$target_os" in + *solaris*) + ac_enable_umem="yes" + ;; + *) + ac_enable_umem="no" + ;; + esac + ]) AC_ARG_ENABLE([tcmalloc], [AS_HELP_STRING([--enable-tcmalloc], @@ -52,3 +60,9 @@ AC_DEFUN([PANDORA_HAVE_BETTER_MALLOC],[ AC_SUBST([BETTER_MALLOC_LIBS]) ]) + +AC_DEFUN([PANDORA_USE_BETTER_MALLOC],[ + AC_REQUIRE([PANDORA_HAVE_BETTER_MALLOC]) + LIBS="${LIBS} ${BETTER_MALLOC_LIBS}" +]) +