diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-08 04:05:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-08 04:05:39 +0000 |
commit | 163f974208f917e3e13a307778a6b6144065cd1d (patch) | |
tree | f29cf6f1bc36a1232f4745093d58d70b5e113925 /ext/io/console/extconf.rb | |
parent | 2c01a07bf4317605758b1242cf2f802baa117087 (diff) |
* ext/io/console: imported. [ruby-dev:40897]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/console/extconf.rb')
-rw-r--r-- | ext/io/console/extconf.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/io/console/extconf.rb b/ext/io/console/extconf.rb new file mode 100644 index 0000000000..ac861848fa --- /dev/null +++ b/ext/io/console/extconf.rb @@ -0,0 +1,19 @@ +require 'mkmf' + +ok = true +hdr = nil +case +when macro_defined?("_WIN32", "") + have_func("rb_w32_map_errno", "ruby.h") +when hdr = %w"termios.h termio.h".find {|h| have_header(h)} + have_func("cfmakeraw", hdr) +when have_header(hdr = "sgtty.h") + %w"stty gtty".each {|f| have_func(f, hdr)} +else + ok = false +end +have_header("sys/ioctl.h") +have_func("rb_io_get_write_io", "ruby/io.h") +if ok + create_makefile("io/console") +end |