summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-05-12 06:07:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-05-12 06:07:26 (GMT)
commit8914432bfa2957d9abadd6f508a697ce3231d7f4 (patch)
treefc368871e316ff453358a626d738b3a6b37edab1 /win/tcl.m4
parentd8668e5c5d98e9b11f6c85e8bd3c7c6ac6834838 (diff)
parent645b420b4f7e757d9539b4a93d684a1965426c54 (diff)
downloadtcl-8914432bfa2957d9abadd6f508a697ce3231d7f4.zip
tcl-8914432bfa2957d9abadd6f508a697ce3231d7f4.tar.gz
tcl-8914432bfa2957d9abadd6f508a697ce3231d7f4.tar.bz2
If your compiler already defines _WIN64, assume --enable-64bit
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index be22fac..83a4ea3 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -557,6 +557,21 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
MACHINE="IA64"
AC_MSG_RESULT([ Using 64-bit $MACHINE mode])
;;
+ *)
+ AC_TRY_COMPILE([
+ #ifdef _WIN64
+ #error 64-bit
+ #endif
+ ], [],
+ tcl_win_64bit=no,
+ tcl_win_64bit=yes
+ )
+ if test "$tcl_win_64bit" = "yes" ; then
+ do64bit=amd64
+ MACHINE="AMD64"
+ AC_MSG_RESULT([ Using 64-bit $MACHINE mode])
+ fi
+ ;;
esac
else
if test "${SHARED_BUILD}" = "0" ; then