aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlecoanet2007-06-14 09:37:49 +0000
committerlecoanet2007-06-14 09:37:49 +0000
commit4ac2d17dcd70f32b83248109f595fca00e756b1f (patch)
treebc92305cd7c40c213e70191f1118ccd2f5d6af0f
parenta4f0709ec602b4c1c7433e13aa73c203db2506f1 (diff)
downloadtkzinc-4ac2d17dcd70f32b83248109f595fca00e756b1f.zip
tkzinc-4ac2d17dcd70f32b83248109f595fca00e756b1f.tar.gz
tkzinc-4ac2d17dcd70f32b83248109f595fca00e756b1f.tar.bz2
tkzinc-4ac2d17dcd70f32b83248109f595fca00e756b1f.tar.xz
Patch to configure for 64 bits on linux
-rw-r--r--tclconfig/tcl.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/tclconfig/tcl.m4 b/tclconfig/tcl.m4
index 1038544..33f09d1 100644
--- a/tclconfig/tcl.m4
+++ b/tclconfig/tcl.m4
@@ -1456,6 +1456,18 @@ 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