summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-10-28 00:30:25 (GMT)
committerhobbs <hobbs>2000-10-28 00:30:25 (GMT)
commit5907ef28509328a25c88c96b50386719d37fe779 (patch)
tree8d0a81aef4263d307dc17cc95b2cbf5f91b97ee1 /unix/tcl.m4
parent2176f7767bdb85a0dd2898b23d4741d008f3c0a9 (diff)
downloadtcl-5907ef28509328a25c88c96b50386719d37fe779.zip
tcl-5907ef28509328a25c88c96b50386719d37fe779.tar.gz
tcl-5907ef28509328a25c88c96b50386719d37fe779.tar.bz2
* unix/configure.in:
* unix/tcl.m4: added support for AIX-5.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m426
1 files changed, 26 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 7981282..37593dd 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -586,6 +586,32 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
TCL_EXP_FILE=""
STLIB_LD="ar cr"
case $system in
+ AIX-5.*)
+ if test "${TCL_THREADS}" = "1" -a "$using_gcc" = "no" ; then
+ # AIX requires the _r compiler when gcc isn't being used
+ if test "${CC}" != "cc_r" ; then
+ CC=${CC}_r
+ fi
+ AC_MSG_RESULT(Using $CC for compiling with threads)
+ fi
+ # AIX-5 uses ELF style dynamic libraries
+ SHLIB_CFLAGS=""
+ SHLIB_LD="/usr/ccs/bin/ld -G -z text"
+
+ # Note: need the LIBS below, otherwise Tk won't find Tcl's
+ # symbols when dynamically loaded into tclsh.
+
+ SHLIB_LD_LIBS='${LIBS}'
+ SHLIB_SUFFIX=".so"
+ DL_OBJS="tclLoadDl.o"
+ DL_LIBS="-ldl"
+ LDFLAGS=""
+ if test "$using_gcc" = "yes" ; then
+ LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
+ else
+ LD_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
+ fi
+ ;;
AIX-4.[[2-9]])
if test "${TCL_THREADS}" = "1" -a "$using_gcc" = "no" ; then
# AIX requires the _r compiler when gcc isn't being used