mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
0a64817fb8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
23 lines
586 B
Ruby
23 lines
586 B
Ruby
require 'mkmf'
|
|
|
|
make=false
|
|
have_library("mytinfo", "tgetent") if /bow/ =~ PLATFORM
|
|
if have_header("ncurses.h") and have_library("ncurses", "initscr")
|
|
make=true
|
|
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_library("curses", "initscr")
|
|
make=true
|
|
end
|
|
end
|
|
|
|
if make
|
|
for f in %w(isendwin ungetch beep doupdate flash deleteln wdeleteln)
|
|
have_func(f)
|
|
end
|
|
create_makefile("curses")
|
|
end
|