summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2011-09-30 03:16:37 +0000
committerAdrian Thurston <thurston@complang.org>2011-09-30 03:16:37 +0000
commit977d50d254b0dd1e7ba821d05345980ede33759d (patch)
treeabd8ecf2781e1a8bccdc6113299106539dd981e2 /configure.in
parent9814e48d8b4cd2c8441ac7637ac4d9ec5155e766 (diff)
downloadcolm-977d50d254b0dd1e7ba821d05345980ede33759d.tar.gz
Added an option for using malloc in the pool alloc. Helps with tracking down
memory leaks with valgrind. Fixed a couple leaks.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 983599c1..78f39515 100644
--- a/configure.in
+++ b/configure.in
@@ -61,6 +61,9 @@ AC_LANG_CPLUSPLUS
dnl Check for definition of MAKE.
AC_PROG_MAKE_SET
+AC_ARG_ENABLE(pool-malloc, "allocate pool objects with malloc",
+ AC_DEFINE([POOL_MALLOC], [1], [allocate pool objects with malloc]))
+
# Logging features
# AC_ARG_ENABLE(log, "turn on logging", AC_DEFINE(COLM_LOG))
# AC_ARG_ENABLE(log-bytecode, "turns on bytecode logging", AC_DEFINE(COLM_LOG_BYTECODE))