summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-18 04:40:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-18 04:40:23 (GMT)
commitf66cea2962133a407a119142e57b4c463ac98e7c (patch)
tree75f9dac1d1c548a2f8d94df59bd370eab406178a /unix
parent4fd8766e0ea2002b54ad9cb9f6e42ac1499495f0 (diff)
parentb178c0b69d6bec22d37a08ead49515c879355e8d (diff)
downloadtk-f66cea2962133a407a119142e57b4c463ac98e7c.zip
tk-f66cea2962133a407a119142e57b4c463ac98e7c.tar.gz
tk-f66cea2962133a407a119142e57b4c463ac98e7c.tar.bz2
make loading of tk.dll in cygwin possible
reduce command table size
Diffstat (limited to 'unix')
-rw-r--r--unix/Makefile.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 0096d27..ed5474d 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -716,8 +716,15 @@ install-binaries: $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) wish@EXEEXT@
(\
echo "if {[catch {package present Tcl 8.5.0}]} { return }";\
relative=`echo | awk '{ORS=" "; split("$(TK_PKG_DIR)",a,"/"); for (f in a) {print ".."}}'`;\
- echo "package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL)\
- [list load [file join \$$dir $${relative}$(TK_LIB_FILE)] Tk]";\
+ echo "if {[string match CYGWIN* \$$::tcl_platform(os)]} {";\
+ echo " if {([info exists ::env(DISPLAY)] || [lsearch -exact \$$::argv -display] > -1)} {";\
+ echo " package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL) [list load [file join \$$dir $${relative}.. bin $(TK_LIB_FILE)] Tk]";\
+ echo " } else {";\
+ echo " package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL) [list load [file join \$$dir $${relative}.. bin tk${MAJOR_VERSION}${MINOR_VERSION}.dll] Tk]";\
+ echo " }";\
+ echo "} else {";\
+ echo " package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL) [list load [file join \$$dir $${relative}$(TK_LIB_FILE)] Tk]";\
+ echo "}";\
) > "$(PKG_INDEX)"; \
fi
@echo "Installing $(LIB_FILE) to $(LIB_INSTALL_DIR)/"