Re: [PATCH] search for modern malloc implementation

From: Kinkie <gkinkie_at_gmail.com>
Date: Sat, 29 May 2010 09:53:49 +0200

On Sat, May 29, 2010 at 8:58 AM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> This updates configure.in to make it search for and link in a modern malloc
> library. If none is found the default libc implementation is used.

To save flags state in configure.in there's utility functions, please
see SQUID_STATE_SAVE/SQUID_STATE_COMMIT/SQUID_STATE_ROLLBACK in
acinclude/squid-util.h

I'm also not totally sure about AC_SEARCH_LIBS: will "-nostdinc" flag
will prevent from linking libc's malloc? In general one of the
possible outputs is "none needed" (which may be the case if any of the
malloc libs have been added to LIBS earlier in the process, or as
environment variable).. Also, we need to consider non-gcc compilers,
and their version of -nostdinc..

-- 
    /kinkie
Received on Sat May 29 2010 - 07:53:58 MDT

This archive was generated by hypermail 2.2.0 : Sat May 29 2010 - 12:00:12 MDT