From 4ac2d17dcd70f32b83248109f595fca00e756b1f Mon Sep 17 00:00:00 2001 From: lecoanet Date: Thu, 14 Jun 2007 09:37:49 +0000 Subject: Patch to configure for 64 bits on linux --- tclconfig/tcl.m4 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tclconfig/tcl.m4') 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 -- cgit v1.1