summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-11-10 00:53:57 (GMT)
committerhobbs <hobbs>2001-11-10 00:53:57 (GMT)
commita36f995e8a74933b68a9f2cc837aeb72e18d02b7 (patch)
tree02c4f36638c7b8837b0cfdd8943f620884f833c2 /unix/tcl.m4
parent9bad3ba33d62e65ac5fe5b8cd950731f656696ed (diff)
downloadtk-a36f995e8a74933b68a9f2cc837aeb72e18d02b7.zip
tk-a36f995e8a74933b68a9f2cc837aeb72e18d02b7.tar.gz
tk-a36f995e8a74933b68a9f2cc837aeb72e18d02b7.tar.bz2
added -lc to AIX libs, fixed path to ldAix
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m420
1 files changed, 18 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 4c5b6e5..d70c95f 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -574,7 +574,6 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
# Step 3: set configuration options based on system name and version.
do64bit_ok=no
- fullSrcDir=`cd $srcdir; pwd`
EXTRA_CFLAGS=""
TCL_EXPORT_FILE_SUFFIX=""
UNSHARED_LIB_SUFFIX=""
@@ -604,6 +603,7 @@ dnl AC_CHECK_TOOL(AR, ar, :)
fi
AC_MSG_RESULT(Using $CC for compiling with threads)
fi
+ LIBS="$LIBS -lc"
# AIX-5 uses ELF style dynamic libraries
SHLIB_CFLAGS=""
SHLIB_LD="/usr/ccs/bin/ld -G -z text"
@@ -641,8 +641,9 @@ dnl AC_CHECK_TOOL(AR, ar, :)
fi
AC_MSG_RESULT(Using $CC for compiling with threads)
fi
+ LIBS="$LIBS -lc"
SHLIB_CFLAGS=""
- SHLIB_LD="$fullSrcDir/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
+ SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
SHLIB_LD_LIBS='${LIBS}'
SHLIB_SUFFIX=".so"
DL_OBJS="tclLoadDl.o"
@@ -938,6 +939,19 @@ dnl AC_CHECK_TOOL(AR, ar, :)
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
TCL_LIB_VERSIONS_OK=nodots
;;
+ Rhapsody-*|Darwin-*)
+ SHLIB_CFLAGS="-fno-common"
+ SHLIB_LD="cc -dynamiclib \${LDFLAGS}"
+ TCL_SHLIB_LD_EXTRAS="-compatibility_version ${TCL_MAJOR_VERSION} -current_version \${VERSION} -install_name \${LIB_RUNTIME_DIR}/\${TCL_LIB_FILE} -prebind -seg1addr a000000"
+ SHLIB_LD_LIBS="${LIBS}"
+ SHLIB_SUFFIX=".dylib"
+ DL_OBJS="tclLoadDyld.o"
+ DL_LIBS=""
+ LDFLAGS="-prebind"
+ LD_SEARCH_FLAGS=""
+ CFLAGS_OPTIMIZE="-O3"
+ EXTRA_CFLAGS="-arch ppc -pipe"
+ ;;
NEXTSTEP-*)
SHLIB_CFLAGS=""
SHLIB_LD="cc -nostdlib -r"
@@ -1292,6 +1306,8 @@ dnl AC_CHECK_TOOL(AR, ar, :)
;;
NetBSD-*|FreeBSD-*|OpenBSD-*)
;;
+ Rhapsody-*|Darwin-*)
+ ;;
RISCos-*)
;;
SCO_SV-3.2*)