+dnl set heap analyses support
+dnl -------------------------
+AC_ARG_ENABLE(heapanalysis, [ --enable-heapanalysis Compile with heap analysis.],
+ [enable_heapanalysis=$enableval], [enable_heapanalysis="no"])
+if test "$enable_heapanalysis" = "no"; then
+ AC_MSG_RESULT([heapanalysis disabled])
+else
+ AC_DEFINE(DO_HEAPANALYSIS)
+ AC_MSG_RESULT([heapanalysis enabled])
+fi
+AC_SUBST(enable_heapanalysis)
+