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 | c97ed5ef9a33f40940a2546e5d6cd7f8d34ae878 (patch) | |
tree | d4314dbbb77497a78c895b8119e35c80729633e6 /ext/tk/tkutil/extconf.rb | |
parent | 135a96accc80519ec5933b48b37d7065be6c4d90 (diff) | |
download | ruby-c97ed5ef9a33f40940a2546e5d6cd7f8d34ae878.tar.gz |
* 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/trunk@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 |