summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-11-02 09:21:07 (GMT)
committerhobbs <hobbs>2000-11-02 09:21:07 (GMT)
commit863ebe289ab5900e21e35b641e21297abac820e5 (patch)
treed5eda400f57050fb3863faee3c82b92d92b13712 /win/tcl.m4
parentc088dfb737ad729c5f46e0c680ee535ef181cb97 (diff)
downloadtcl-863ebe289ab5900e21e35b641e21297abac820e5.zip
tcl-863ebe289ab5900e21e35b641e21297abac820e5.tar.gz
tcl-863ebe289ab5900e21e35b641e21297abac820e5.tar.bz2
makefile fixes for Win64 support
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index 906e4ff..b791c46 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -319,6 +319,13 @@ AC_DEFUN(SC_ENABLE_SYMBOLS, [
#--------------------------------------------------------------------
AC_DEFUN(SC_CONFIG_CFLAGS, [
+
+ # Step 0: Enable 64 bit support?
+
+ AC_MSG_CHECKING([if 64bit support is requested])
+ AC_ARG_ENABLE(64bit,[ --enable-64bit enable 64bit support (where applicable)], [do64bit=$enableval], [do64bit=no])
+ AC_MSG_RESULT($do64bit)
+
AC_MSG_CHECKING([compiler flags])
# Set some defaults (may get changed below)
@@ -330,6 +337,9 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
# set various compiler flags depending on whether we are using gcc or cl
if test "${GCC}" = "yes" ; then
+ if test "$do64bit" = "yes" ; then
+ AC_MSG_WARN("64bit mode not supported with GCC on Windows")
+ fi
SHLIB_LD=""
SHLIB_LD_LIBS=""
LIBS=""
@@ -482,6 +492,10 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
# built -- Console vs. Window.
LDFLAGS_CONSOLE="-link -subsystem:console"
LDFLAGS_WINDOW="-link -subsystem:windows"
+
+ if test "$do64bit" = "yes" ; then
+ EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_TCLALLOC=0"
+ fi
fi
])