Backport #5048 ยป patch-ext-tk-mac_lion.diff
ext/tk/extconf.rb (working copy) | ||
---|---|---|
313 | 313 |
paths.reverse! unless TkLib_Config["ActiveTcl"] # system has higher priority |
314 | 314 | |
315 | 315 |
paths.map{|dir| dir.strip.chomp('/')}.each{|dir| |
316 |
next unless File.exist?(File.join(dir, "Tcl.framework", "Headers")) |
|
316 | 317 |
next unless File.directory?(tcldir = File.join(dir, "Tcl.framework")) |
318 |
next unless File.exist?(File.join(dir, "Tk.framework"), "Headers") |
|
317 | 319 |
next unless File.directory?(tkdir = File.join(dir, "Tk.framework")) |
318 | 320 |
TkLib_Config["tcltk-framework"] = dir |
319 | 321 |
return [tcldir, tkdir] |