summaryrefslogtreecommitdiffstats
path: root/win/configure.in
diff options
context:
space:
mode:
authordavidg <davidg>2000-10-31 01:20:08 (GMT)
committerdavidg <davidg>2000-10-31 01:20:08 (GMT)
commit71fa6d71a0c499d298b8a8d1db3eb00994bf44c6 (patch)
tree05262054f7e12411f78943a3c15471e201db808c /win/configure.in
parent0834d8e227e49b1763a682c9602d59fcea0bf9be (diff)
downloadtcl-71fa6d71a0c499d298b8a8d1db3eb00994bf44c6.zip
tcl-71fa6d71a0c499d298b8a8d1db3eb00994bf44c6.tar.gz
tcl-71fa6d71a0c499d298b8a8d1db3eb00994bf44c6.tar.bz2
2000-10-30 David Gravereaux <davygrvy@ajubasolutions.com>
* win/configure.in: * win/Makefile.in: * win/makefile.vc: * win/tcl.rc: * win/tclsh.rc: Added logic to derive filenames better in the resource scripts based on compile options.
Diffstat (limited to 'win/configure.in')
-rw-r--r--win/configure.in23
1 files changed, 22 insertions, 1 deletions
diff --git a/win/configure.in b/win/configure.in
index 5173dfe..74f9f0c 100644
--- a/win/configure.in
+++ b/win/configure.in
@@ -2,7 +2,7 @@
# generate the file "configure", which is run during Tcl installation
# to configure the system for the local environment.
#
-# RCS: @(#) $Id: configure.in,v 1.28 2000/09/06 18:50:17 hobbs Exp $
+# RCS: @(#) $Id: configure.in,v 1.29 2000/10/31 01:20:08 davidg Exp $
AC_INIT(../generic/tcl.h)
@@ -140,6 +140,26 @@ CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}
CFG_TCL_UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX}
CFG_TCL_EXPORT_FILE_SUFFIX=${TCL_EXPORT_FILE_SUFFIX}
+#--------------------------------------------------------------------
+# Adjust the defines for how the resources are built depending
+# on symbols and static vs. shared.
+#--------------------------------------------------------------------
+
+if test ${SHARED_BUILD} = 0 ; then
+ if test "${DBGX}" = "d"; then
+ RC_DEFINES="-d STATIC_BUILD -d DEBUG"
+ else
+ RC_DEFINES="-d STATIC_BUILD"
+ fi
+else
+ if test "${DBGX}" = "d"; then
+ RC_DEFINES="-d DEBUG"
+ else
+ RC_DEFINES=""
+ fi
+fi
+
+
AC_SUBST(TCL_VERSION)
AC_SUBST(TCL_MAJOR_VERSION)
AC_SUBST(TCL_MINOR_VERSION)
@@ -187,6 +207,7 @@ AC_SUBST(RC)
AC_SUBST(RC_OUT)
AC_SUBST(RC_TYPE)
AC_SUBST(RC_INCLUDE)
+AC_SUBST(RC_DEFINES)
AC_SUBST(RES)
AC_SUBST(LIBS)
AC_SUBST(LIBS_GUI)