From: adrian <> Date: Sun, 18 Nov 2001 10:41:26 +0000 (+0000) Subject: Enable dlmalloc automatically if we're building on an SGI running X-Git-Tag: SQUID_3_0_PRE1~1281 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8dbaa90de90d640124d9d40311b0c03aa90aa94;p=thirdparty%2Fsquid.git Enable dlmalloc automatically if we're building on an SGI running IRIX. IRIX's system malloc isn't very squid-friendly, and causes large memory leaks for people. --- diff --git a/configure b/configure index b47988a081..cdc9afdd85 100755 --- a/configure +++ b/configure @@ -1745,6 +1745,12 @@ if test "${use_dlmalloc-unset}" = unset; then LIBDLMALLOC="libdlmalloc.a" LIB_MALLOC="-L../lib -ldlmalloc" ;; + *-sgi-irix*) + echo "Enabling dlmalloc for $host" + use_dlmalloc="yes" + LIBDLMALLOC="libdlmalloc.a" + LIB_MALLOC="-L../lib -ldlmalloc" + ;; esac fi if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then diff --git a/configure.in b/configure.in index 6c646d58e6..70cccb8cb2 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ dnl Configuration input file for Squid dnl dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9) dnl -dnl $Id: configure.in,v 1.240 2001/11/14 23:18:46 hno Exp $ +dnl $Id: configure.in,v 1.241 2001/11/18 03:41:28 adrian Exp $ dnl dnl dnl @@ -11,7 +11,7 @@ AC_INIT(src/main.c) AC_CONFIG_AUX_DIR(cfgaux) AM_INIT_AUTOMAKE(Squid, 2.5-DEVEL) AM_CONFIG_HEADER(include/autoconf.h) -AC_REVISION($Revision: 1.240 $)dnl +AC_REVISION($Revision: 1.241 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AM_MAINTAINER_MODE @@ -164,6 +164,12 @@ if test "${use_dlmalloc-unset}" = unset; then LIBDLMALLOC="libdlmalloc.a" LIB_MALLOC="-L../lib -ldlmalloc" ;; + *-sgi-irix*) + echo "Enabling dlmalloc for $host" + use_dlmalloc="yes" + LIBDLMALLOC="libdlmalloc.a" + LIB_MALLOC="-L../lib -ldlmalloc" + ;; esac fi if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then