diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2005-06-21 08:51:19 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2005-06-21 08:51:19 (GMT) |
commit | 3c34a82ae349f96f88b892f3d366443bac1c77c1 (patch) | |
tree | 6f2649b621ac7ffbd96dd381d1d9b861e0e63bd9 /unix/tcl.m4 | |
parent | 1a7d07bf9863f423695b4de79e7305d4d42b6c37 (diff) | |
download | tcl-3c34a82ae349f96f88b892f3d366443bac1c77c1.zip tcl-3c34a82ae349f96f88b892f3d366443bac1c77c1.tar.gz tcl-3c34a82ae349f96f88b892f3d366443bac1c77c1.tar.bz2 |
Only enable the 'compile' special debugging feature when requested in
configure.in; removes irrelevant junk from the configure files of extensions
that use Tcl's tcl.m4.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 74c181b..10335ad 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -603,20 +603,22 @@ AC_DEFUN(SC_ENABLE_SYMBOLS, [ fi AC_SUBST(CFLAGS_DEFAULT) AC_SUBST(LDFLAGS_DEFAULT) + ### FIXME: Surely TCL_CFG_DEBUG should be set to whether we're debugging? AC_DEFINE(TCL_CFG_DEBUG, 1, [Is debugging enabled?]) if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then AC_DEFINE(TCL_MEM_DEBUG, 1, [Is memory debugging enabled?]) fi - if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then - AC_DEFINE(TCL_COMPILE_DEBUG, 1, [Is bytecode debugging enabled?]) - AC_DEFINE(TCL_COMPILE_STATS, 1, [Are bytecode statistics enabled?]) - fi + ifelse($1,bccdebug,dnl Only enable 'compile' for the Tcl core itself + if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then + AC_DEFINE(TCL_COMPILE_DEBUG, 1, [Is bytecode debugging enabled?]) + AC_DEFINE(TCL_COMPILE_STATS, 1, [Are bytecode statistics enabled?]) + fi) if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then if test "$tcl_ok" = "all"; then - AC_MSG_RESULT([enabled symbols mem compile debugging]) + AC_MSG_RESULT([enabled symbols mem ]ifelse($1,bccdebug,[compile ])[debugging]) else AC_MSG_RESULT([enabled $tcl_ok debugging]) fi |