diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-11-22 07:06:11 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-11-22 07:06:11 +0000 |
commit | 8faf08a4e17b3b7d3621b429688bab9775fbf335 (patch) | |
tree | 68417eab581340514628e52fab6bf55cc103b07f /ext/tk/tkutil/extconf.rb | |
parent | 57b5bf86a9359079bb841596c369d04ef05e1a1b (diff) |
* ext/tk/extconf.rb: support --with-X11/--without-X11 option.
* ext/tk/README.tcltklib: add description about --with-X11-* option
[ruby-talk:225166] and --with-X11/--without-X11 option.
* ext/tk/tkutil/extconf.rb: able to be called manually [ruby-talk:225950].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/tkutil/extconf.rb')
-rw-r--r-- | ext/tk/tkutil/extconf.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/tk/tkutil/extconf.rb b/ext/tk/tkutil/extconf.rb index e3aa00a4b2..dd00d5d535 100644 --- a/ext/tk/tkutil/extconf.rb +++ b/ext/tk/tkutil/extconf.rb @@ -1,4 +1,11 @@ -if compiled?('tk') +begin + has_tk = compiled?('tk') +rescue NoMethodError + # Probably, called manually (NOT from 'extmk.rb'). Force to make Makefile. + has_tk = true +end + +if has_tk require 'mkmf' create_makefile('tkutil') end |