diff options
author | das <das@noemail.net> | 2006-11-26 06:05:38 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2006-11-26 06:05:38 (GMT) |
commit | de6cbac2e6fdd38b78b00b62957da347916b446b (patch) | |
tree | 60e9e414c5c093dad7d1e94dfccc4d67c53fc835 /unix/tcl.m4 | |
parent | 9694980105e141dfd79f5f844b33936160c18020 (diff) | |
download | tcl-de6cbac2e6fdd38b78b00b62957da347916b446b.zip tcl-de6cbac2e6fdd38b78b00b62957da347916b446b.tar.gz tcl-de6cbac2e6fdd38b78b00b62957da347916b446b.tar.bz2 |
* tcl.m4 (Linux): --enable-64bit support. [Patch 1597389], [Bug 1230558]
* configure: autoconf-2.13
FossilOrigin-Name: 13f4724dd4f8925ebdb3691462701c9f7d66b6d1
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 8c122b3..f3d9f1b 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -311,6 +311,7 @@ AC_DEFUN([SC_LOAD_TCLCONFIG], [ eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" AC_SUBST(TCL_VERSION) + AC_SUBST(TCL_PATCH_LEVEL) AC_SUBST(TCL_BIN_DIR) AC_SUBST(TCL_SRC_DIR) @@ -1340,7 +1341,7 @@ dnl AC_CHECK_TOOL(AR, ar) #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" if test "$have_dl" = yes; then - SHLIB_LD="${CC} -shared" + SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="$LDFLAGS -Wl,--export-dynamic" @@ -1357,6 +1358,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 |