diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-04 07:31:10 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-04 07:31:10 +0000 |
commit | c3c31026104b774975e198a805ae379cae1f8a08 (patch) | |
tree | a88fd9fe84b0dfd91ca9f8cf9635e691cd929f8d /ext/curses | |
parent | cc4dec07018b20b17b87561a0f23509c741075ed (diff) | |
download | ruby-c3c31026104b774975e198a805ae379cae1f8a08.tar.gz |
* ext/curses/extconf.rb: updated for tinfo check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/curses')
-rw-r--r-- | ext/curses/extconf.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/curses/extconf.rb b/ext/curses/extconf.rb index 2f20bb2ff3..94d1e2e549 100644 --- a/ext/curses/extconf.rb +++ b/ext/curses/extconf.rb @@ -6,15 +6,14 @@ dir_config('termcap') make=false have_library("mytinfo", "tgetent") if /bow/ =~ RUBY_PLATFORM +have_library("tinfo", "tgetent") or have_library("termcap", "tgetent") if have_header("ncurses.h") and have_library("ncurses", "initscr") make=true -elsif have_header("ncurses/curses.h") and have_library("ncurses", "initscr") and have_library("tinfo", "tgetent") elsif have_header("ncurses/curses.h") and have_library("ncurses", "initscr") make=true elsif have_header("curses_colr/curses.h") and have_library("cur_colr", "initscr") make=true else - have_library("termcap", "tgetent") if have_header("curses.h") and have_library("curses", "initscr") make=true end |