summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-10-12 15:09:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-10-12 15:09:02 (GMT)
commit23718fff3fa4498a96ddba775e09ec032b64c6a1 (patch)
tree1f10636b6db460edde51cdeedce05d61cc290c89 /unix/configure
parent96b66d43c7d89c8cff44d9768c2d57bd4b4a7cdf (diff)
parentf09480661f2d21a06fc4329c773d93124e674a7a (diff)
downloadtk-23718fff3fa4498a96ddba775e09ec032b64c6a1.zip
tk-23718fff3fa4498a96ddba775e09ec032b64c6a1.tar.gz
tk-23718fff3fa4498a96ddba775e09ec032b64c6a1.tar.bz2
Rebase to 8.7
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure10
1 files changed, 7 insertions, 3 deletions
diff --git a/unix/configure b/unix/configure
index 7eeeaa7..876d417 100755
--- a/unix/configure
+++ b/unix/configure
@@ -8903,14 +8903,18 @@ fi
#--------------------------------------------------------------------
# Replace ${VERSION} with contents of ${TK_VERSION}
-eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}"
-eval "TK_STUB_LIB_DIR=${libdir}"
-
+if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
+ TK_STUB_LIB_FILE="libtkstub.a"
+ TK_STUB_LIB_FLAG="-ltkstub"
+else
+ eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}"
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
TK_STUB_LIB_FLAG="-ltkstub${TK_VERSION}"
else
TK_STUB_LIB_FLAG="-ltkstub`echo ${TK_VERSION} | tr -d .`"
fi
+fi
+eval "TK_STUB_LIB_DIR=${libdir}"
TK_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
TK_STUB_LIB_SPEC="-L${TK_STUB_LIB_DIR} ${TK_STUB_LIB_FLAG}"