From a399be7f24d58080282316d1ec529bf5aed67634 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 24 Feb 2015 00:06:54 +0100 Subject: try hard to free heap memory after command-line termination using malloc_trim() * this is a Linux/glibc-only optimization --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 77b71a7..e2f230f 100644 --- a/configure.ac +++ b/configure.ac @@ -94,6 +94,11 @@ case $host in ;; esac +# Check for optional GNU libc features. +# Will probably only be found on Linux. +AC_CHECK_HEADERS([malloc.h]) +AC_CHECK_FUNCS([malloc_trim]) + # # Config options # -- cgit v1.2.3