summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authordas <das>2006-11-26 06:05:11 (GMT)
committerdas <das>2006-11-26 06:05:11 (GMT)
commitf9e2925711ddf6f1acc994cb233cf91c8bdb11b2 (patch)
tree8ba0141cf5847954ba9af6266c948b04a0783921 /unix/tcl.m4
parent9884ed53da0071aa546af02ce43cc5d1df4940e7 (diff)
downloadtk-f9e2925711ddf6f1acc994cb233cf91c8bdb11b2.zip
tk-f9e2925711ddf6f1acc994cb233cf91c8bdb11b2.tar.gz
tk-f9e2925711ddf6f1acc994cb233cf91c8bdb11b2.tar.bz2
* tcl.m4 (Linux): --enable-64bit support. [Patch 1597389], [Bug 1230558]
* configure: autoconf-2.59
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m413
1 files changed, 12 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 8c900dd..ff09cd0 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1402,7 +1402,7 @@ dnl AC_CHECK_TOOL(AR, ar)
# get rid of the warnings.
#CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
- SHLIB_LD="${CC} -shared"
+ SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
DL_OBJS="tclLoadDl.o"
DL_LIBS="-ldl"
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
@@ -1411,6 +1411,17 @@ dnl AC_CHECK_TOOL(AR, ar)
if test "`uname -m`" = "alpha" ; then
CFLAGS="$CFLAGS -mieee"
fi
+ if test $do64bit = yes; then
+ AC_CACHE_CHECK([if compiler accepts -m64 flag], tcl_cv_cc_m64, [
+ hold_cflags=$CFLAGS
+ CFLAGS="$CFLAGS -m64"
+ AC_TRY_LINK(,, tcl_cv_cc_m64=yes, tcl_cv_cc_m64=no)
+ CFLAGS=$hold_cflags])
+ if test $tcl_cv_cc_m64 = yes; then
+ CFLAGS="$CFLAGS -m64"
+ do64bit_ok=yes
+ fi
+ fi
# The combo of gcc + glibc has a bug related
# to inlining of functions like strtod(). The