summaryrefslogtreecommitdiffstats
path: root/win/configure
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-07-10 18:13:41 (GMT)
committersebres <sebres@users.sourceforge.net>2019-07-10 18:13:41 (GMT)
commit5c69fce733edf887bb423858dcfc950581ea3427 (patch)
treedbe973853be0f1f9542ed2b3cafbb19ca048e630 /win/configure
parentbd11687207ffad058dde0ebb6ab8ff9a88fb68db (diff)
downloadtcl-5c69fce733edf887bb423858dcfc950581ea3427.zip
tcl-5c69fce733edf887bb423858dcfc950581ea3427.tar.gz
tcl-5c69fce733edf887bb423858dcfc950581ea3427.tar.bz2
win/x86: compat fix, 64-bit time_t for 32-build is optional now (via configure/make option time64bit or define _USE_64BIT_TIME_T)
Diffstat (limited to 'win/configure')
-rwxr-xr-xwin/configure20
1 files changed, 20 insertions, 0 deletions
diff --git a/win/configure b/win/configure
index 3a77f00..b754717 100755
--- a/win/configure
+++ b/win/configure
@@ -842,6 +842,7 @@ Optional Features:
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-threads build with threads (default: off)
--enable-shared build and link with shared libraries (default: on)
+ --enable-time64bit force 64-bit time_t for 32-bit build (default: off)
--enable-64bit enable 64bit support (where applicable)
--enable-wince enable Win/CE support (where applicable)
--enable-symbols build with debugging symbols (default: off)
@@ -3148,6 +3149,25 @@ _ACEOF
#--------------------------------------------------------------------
+# Check whether --enable-time64bit was given.
+#--------------------------------------------------------------------
+
+echo "$as_me:$LINENO: checking force of 64-bit time_t" >&5
+echo $ECHO_N "checking force of 64-bit time_t... $ECHO_C" >&6
+# Check whether --enable-time64bit or --disable-time64bit was given.
+if test "${enable_time64bit+set}" = set; then
+ enableval="$enable_time64bit"
+ tcl_ok=$enableval
+else
+ tcl_ok=no
+fi;
+echo "$as_me:$LINENO: result: \"$tcl_ok\"" >&5
+echo "${ECHO_T}\"$tcl_ok\"" >&6
+if test "$tcl_ok" = "yes"; then
+ CFLAGS="${CFLAGS} -D_USE_64BIT_TIME_T"
+fi
+
+#--------------------------------------------------------------------
# The statements below define a collection of compile flags. This
# macro depends on the value of SHARED_BUILD, and should be called
# after SC_ENABLE_SHARED checks the configure switches.