From 1cf8e928018a2424bdd8fb602abea143d54c7144 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 7 Mar 2003 11:45:01 +0000 Subject: * ext/tcltklib/extconf.rb (find_tcl, find_tk): return true if non-versioned found. [ruby-dev:19759] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tcltklib/extconf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/tcltklib/extconf.rb b/ext/tcltklib/extconf.rb index b4ecfad8fe..6e02eb80ef 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 -- cgit v1.2.3