summaryrefslogtreecommitdiffstats
path: root/ext/curses
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-04 07:31:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-04 07:31:10 +0000
commit124d83b1f249ba9f5afa34c6a4d17516c3ead99e (patch)
treea88fd9fe84b0dfd91ca9f8cf9635e691cd929f8d /ext/curses
parent2ccb03e89dcb2fc4fbdb08c901175b686797cdb0 (diff)
downloadruby-124d83b1f249ba9f5afa34c6a4d17516c3ead99e.tar.gz
ruby-124d83b1f249ba9f5afa34c6a4d17516c3ead99e.tar.xz
ruby-124d83b1f249ba9f5afa34c6a4d17516c3ead99e.zip
* ext/curses/extconf.rb: updated for tinfo check.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/curses')
-rw-r--r--ext/curses/extconf.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/curses/extconf.rb b/ext/curses/extconf.rb
index 2f20bb2ff..94d1e2e54 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