summaryrefslogtreecommitdiffstats
path: root/unix/configure.in
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-14 09:22:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-14 09:22:04 (GMT)
commitf9c7f0a81f0b5e4e46165976aec048eabddbb6e3 (patch)
tree4982c7a2c897860fd3ef069f30b9b6ef0344ac89 /unix/configure.in
parent4512761a420a49db62dd71d32397267b4f5b8c30 (diff)
downloadtk-f9c7f0a81f0b5e4e46165976aec048eabddbb6e3.zip
tk-f9c7f0a81f0b5e4e46165976aec048eabddbb6e3.tar.gz
tk-f9c7f0a81f0b5e4e46165976aec048eabddbb6e3.tar.bz2
Static Cygwin wish.exe cannot link with win32's static libtk85.a (because it expects a different runtime), so configure shouldn't even try to do this.
(On a dynamic wish.exe this works, this is exactly how wish can run even without X11)
Diffstat (limited to 'unix/configure.in')
-rw-r--r--unix/configure.in13
1 files changed, 7 insertions, 6 deletions
diff --git a/unix/configure.in b/unix/configure.in
index febc702..89efe52 100644
--- a/unix/configure.in
+++ b/unix/configure.in
@@ -720,14 +720,15 @@ else
fi
# libdir must be a fully qualified path and not ${exec_prefix}/lib
eval libdir="$libdir"
- if test "${ac_cv_cygwin}" != "yes" -a "${TCL_LIB_VERSIONS_OK}" = "ok"; then
- TK_LIB_FLAG="-ltk${TK_VERSION}"
- else
- TK_LIB_FLAG="-ltk`echo ${TK_VERSION} | tr -d .`"
- fi
if test "${ac_cv_cygwin}" = "yes" -a "$SHARED_BUILD" = "1"; then
- TK_BUILD_LIB_SPEC="-L\$(TOP_DIR)/win -ltk${TK_MAJOR_VERSION}${TK_MINOR_VERSION} \${TCL_LIB_SPEC}"
+ TK_LIB_FLAG="-ltk`echo ${TK_VERSION} | tr -d .`"
+ TK_BUILD_LIB_SPEC="-L\$(TOP_DIR)/win ${TK_LIB_FLAG}"
else
+ if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
+ TK_LIB_FLAG="-ltk${TK_VERSION}"
+ else
+ TK_LIB_FLAG="-ltk`echo ${TK_VERSION} | tr -d .`"
+ fi
TK_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_LIB_FLAG}"
fi
TK_LIB_SPEC="-L${libdir} ${TK_LIB_FLAG}"