From f89c2cce1372121ce04f57aa18213d8b2ee095fb Mon Sep 17 00:00:00 2001 From: treectrl Date: Fri, 2 Feb 2007 20:34:01 +0000 Subject: Pass -DTREECTRL_DEBUG to the compiler when --enable-symbols is not "no". --- shellicon/configure | 7 +++++++ shellicon/configure.ac | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/shellicon/configure b/shellicon/configure index 2f2b6c0..86baad9 100644 --- a/shellicon/configure +++ b/shellicon/configure @@ -11942,6 +11942,13 @@ echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } fi +if test "${enable_symbols+set}" = set && test "$enable_symbols" != no; then + + PKG_CFLAGS="$PKG_CFLAGS -DTREECTRL_DEBUG" + + +fi + #-------------------------------------------------------------------- # Everyone should be linking against the Tcl stub library. If you # can't for some reason, remove this definition. If you aren't using diff --git a/shellicon/configure.ac b/shellicon/configure.ac index 06dd944..457b2ec 100644 --- a/shellicon/configure.ac +++ b/shellicon/configure.ac @@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to dnl generate the file "configure", which is run during Tcl installation dnl to configure the system for the local environment. # -# RCS: @(#) $Id: configure.ac,v 1.1 2007/01/31 00:45:55 treectrl Exp $ +# RCS: @(#) $Id: configure.ac,v 1.2 2007/02/02 20:34:01 treectrl Exp $ #----------------------------------------------------------------------- # Sample configure.in for Tcl Extensions. @@ -154,6 +154,10 @@ TEA_CONFIG_CFLAGS TEA_ENABLE_SYMBOLS +if test "${enable_symbols+set}" = set && test "$enable_symbols" != no; then + TEA_ADD_CFLAGS([-DTREECTRL_DEBUG]) +fi + #-------------------------------------------------------------------- # Everyone should be linking against the Tcl stub library. If you # can't for some reason, remove this definition. If you aren't using -- cgit v0.12