summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-10-10 05:01:20 (GMT)
committerhobbs <hobbs>2002-10-10 05:01:20 (GMT)
commitea99cee25a420695da7bd29c5192575f9d34907d (patch)
tree0eaca26b5a18cb94a6f3ece2dad91a6ff3a17e38 /unix/tcl.m4
parent5d44339297483bc5ad5e6059dd8a959efc44ae73 (diff)
downloadtk-ea99cee25a420695da7bd29c5192575f9d34907d.zip
tk-ea99cee25a420695da7bd29c5192575f9d34907d.tar.gz
tk-ea99cee25a420695da7bd29c5192575f9d34907d.tar.bz2
* unix/README: doc'ed --enable-symbols options.
* unix/Makefile.in: comment docs * unix/configure: regen * unix/tcl.m4: replaced SC_ENABLE_MEMDEBUG with a more intelligent SC_ENABLE_SYMBOLS that takes yes|no|mem|all as options now.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m427
1 files changed, 21 insertions, 6 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 4ad2d1a..536e42e 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -463,6 +463,7 @@ AC_DEFUN(SC_ENABLE_THREADS, [
# SC_ENABLE_SYMBOLS --
#
# Specify if debugging symbols should be used
+# Memory (TCL_MEM_DEBUG) debugging can also be enabled.
#
# Arguments:
# none
@@ -491,19 +492,33 @@ AC_DEFUN(SC_ENABLE_SYMBOLS, [
AC_MSG_CHECKING([for build with symbols])
AC_ARG_ENABLE(symbols, [ --enable-symbols build with debugging symbols [--disable-symbols]], [tcl_ok=$enableval], [tcl_ok=no])
# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
- if test "$tcl_ok" = "yes"; then
- CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
- LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
- DBGX=g
- AC_MSG_RESULT([yes])
- else
+ if test "$tcl_ok" = "no"; then
CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
DBGX=""
AC_MSG_RESULT([no])
+ else
+ CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
+ LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
+ DBGX=g
+ if test "$tcl_ok" = "yes"; then
+ AC_MSG_RESULT([yes (standard debugging)])
+ fi
fi
AC_SUBST(CFLAGS_DEFAULT)
AC_SUBST(LDFLAGS_DEFAULT)
+
+ if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
+ AC_DEFINE(TCL_MEM_DEBUG)
+ fi
+
+ if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
+ if test "$tcl_ok" = "all"; then
+ AC_MSG_RESULT([enabled symbols mem debugging])
+ else
+ AC_MSG_RESULT([enabled $tcl_ok debugging])
+ fi
+ fi
])
#------------------------------------------------------------------------