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 | |
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')
-rw-r--r-- | unix/configure.in | 4 | ||||
-rw-r--r-- | unix/tcl.m4 | 12 |
2 files changed, 9 insertions, 7 deletions
diff --git a/unix/configure.in b/unix/configure.in index f4b36ed..08896a4 100644 --- a/unix/configure.in +++ b/unix/configure.in @@ -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.in,v 1.134 2005/06/07 14:03:52 dkf Exp $ +# RCS: @(#) $Id: configure.in,v 1.135 2005/06/21 08:51:23 dkf Exp $ AC_INIT([tcl],[8.5]) AC_PREREQ(2.57) @@ -108,7 +108,7 @@ SC_ENABLE_SHARED SC_CONFIG_CFLAGS -SC_ENABLE_SYMBOLS +SC_ENABLE_SYMBOLS(bccdebug) #-------------------------------------------------------------------- # Detect what compiler flags to set for 64-bit support. 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 |