From 5ccf51e7c87f6b32eb80739d9f274b2575d8afa1 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 23 Sep 2011 11:59:19 +0400 Subject: [PATCH] Change configure to define NO_DEBUGGING if "--disable-gc-debug" * configure.ac (NO_DEBUGGING): Define based on testing enable_gc_debug value (instead of based on with_cross_host value). --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 86a4094f..94b76d1d 100644 --- a/configure.ac +++ b/configure.ac @@ -670,11 +670,13 @@ if test -n "${with_cross_host}"; then AC_DEFINE([NO_CLOCK], 1, [Define to not use system clock (cross compiling).]) AC_DEFINE([SMALL_CONFIG], 1, [Define to tune the collector for small heap sizes.]) +fi + +if test "$enable_gc_debug" == "no"; then AC_DEFINE([NO_DEBUGGING], 1, [Disable debugging, like GC_dump and its callees.]) fi - AC_SUBST(UNWINDLIBS) AC_ARG_ENABLE(gc-assertions, -- 2.49.0