diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-07 11:45:01 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-07 11:45:01 +0000 |
| commit | c5f247792bddc174105d72923769a48e3ac73c66 (patch) | |
| tree | 99a068220890a3abfb50c850a63fe67f469e68ff /ext/tcltklib | |
| parent | b7cc38d9e7128ada77f9045b3f594ff117c45bbe (diff) | |
| download | ruby-c5f247792bddc174105d72923769a48e3ac73c66.tar.gz ruby-c5f247792bddc174105d72923769a48e3ac73c66.tar.xz ruby-c5f247792bddc174105d72923769a48e3ac73c66.zip | |
* ext/tcltklib/extconf.rb (find_tcl, find_tk): return true if
non-versioned found. [ruby-dev:19759]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tcltklib')
| -rw-r--r-- | ext/tcltklib/extconf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tcltklib/extconf.rb b/ext/tcltklib/extconf.rb index b4ecfad8f..6e02eb80e 100644 --- a/ext/tcltklib/extconf.rb +++ b/ext/tcltklib/extconf.rb @@ -23,7 +23,7 @@ def find_tcl(tcllib, stubs) if tcllib find_library(tcllib, func, *paths) elsif find_library("tcl", func, *paths) - # ok + true else %w[8.4 8.3 8.2 8.0 7.6].find { |ver| find_library("tcl#{ver}", func, *paths) or @@ -38,7 +38,7 @@ def find_tk(tklib, stubs) if tklib find_library(tklib, func, *paths) elsif find_library("tk", func, *paths) - # ok + true else %w[8.4 8.3 8.2 8.0 4.2].find { |ver| find_library("tk#{ver}", func, *paths) or |
