summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2002-10-16 01:17:14 (GMT)
committerhobbs <hobbs@noemail.net>2002-10-16 01:17:14 (GMT)
commit2b691676d1d278f6ed11ba97fc862028ce720837 (patch)
tree6863022b30caf147f0fc37d89157bc2e8a4c2551 /win/tcl.m4
parentdae8e43505c88122bd600fa0d7cbfc05e511972b (diff)
downloadtk-2b691676d1d278f6ed11ba97fc862028ce720837.zip
tk-2b691676d1d278f6ed11ba97fc862028ce720837.tar.gz
tk-2b691676d1d278f6ed11ba97fc862028ce720837.tar.bz2
* win/configure:
* win/tcl.m4: Add --enable-shared=mem support. FossilOrigin-Name: 5c6155139d7bb7174ebf731748013f5865608860
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m431
1 files changed, 23 insertions, 8 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index 4b8cd22..cc7f95a 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -289,20 +289,35 @@ AC_DEFUN(SC_ENABLE_THREADS, [
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])
-
- if test "$tcl_ok" = "yes"; then
- CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
- LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
- DBGX=d
- AC_MSG_RESULT([yes])
- else
+# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
+ 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
+])
#--------------------------------------------------------------------
# SC_CONFIG_CFLAGS