aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-02-24 00:06:54 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-03-02 00:03:51 +0100
commita399be7f24d58080282316d1ec529bf5aed67634 (patch)
treeb67c1fb82969a60d359875e0fd0e51b4d9ff1c98 /configure.ac
parentef82d22045f7e08eb6ebcd84893d23286be72ba5 (diff)
downloadsciteco-a399be7f24d58080282316d1ec529bf5aed67634.tar.gz
try hard to free heap memory after command-line termination using malloc_trim()
* this is a Linux/glibc-only optimization
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
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
#