summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-09-02 21:21:34 (GMT)
committerhobbs <hobbs>2002-09-02 21:21:34 (GMT)
commit4dd618732d1dae229818adeaef0d31dbae6f6348 (patch)
tree10bc0c2a07933532b873041767a1a2ae70a780d8 /unix/tcl.m4
parent94041900dc741c5a26b4ad2ccb1e6810cefebaa8 (diff)
downloadtk-4dd618732d1dae229818adeaef0d31dbae6f6348.zip
tk-4dd618732d1dae229818adeaef0d31dbae6f6348.tar.gz
tk-4dd618732d1dae229818adeaef0d31dbae6f6348.tar.bz2
add support for 64-bit builds on HP-11 with gcc
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m419
1 files changed, 17 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index e8ffd50..fd47e68 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -960,11 +960,26 @@ dnl AC_CHECK_TOOL(AR, ar, :)
LD_LIBRARY_PATH_VAR="SHLIB_PATH"
fi
+ # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
+ #EXTRA_CFLAGS="+DAportable"
+
# Check to enable 64-bit flags for compiler/linker
if test "$do64bit" = "yes" ; then
if test "$GCC" = "yes" ; then
- AC_MSG_WARN("64bit mode not supported with GCC on $system")
- else
+ hpux_arch='`gcc -dumpmachine`'
+ case $hpux_arch in
+ hppa64*)
+ # 64-bit gcc in use. Fix flags for GNU ld.
+ do64bit_ok=yes
+ SHLIB_LD="gcc -shared"
+ SHLIB_LD_LIBS=""
+ LD_SEARCH_FLAGS=''
+ ;;
+ *)
+ AC_MSG_WARN("64bit mode not supported with GCC on $system")
+ ;;
+ esac
+ else
do64bit_ok=yes
EXTRA_CFLAGS="+DA2.0W"
LDFLAGS="+DA2.0W $LDFLAGS"