summaryrefslogtreecommitdiff
path: root/ruby_1_8_6/ext/tk/tkutil/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_1_8_6/ext/tk/tkutil/extconf.rb')
-rw-r--r--ruby_1_8_6/ext/tk/tkutil/extconf.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/ruby_1_8_6/ext/tk/tkutil/extconf.rb b/ruby_1_8_6/ext/tk/tkutil/extconf.rb
new file mode 100644
index 0000000000..dd00d5d535
--- /dev/null
+++ b/ruby_1_8_6/ext/tk/tkutil/extconf.rb
@@ -0,0 +1,11 @@
+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