1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/curses/extconf.rb

22 lines
501 B
Ruby
Raw Normal View History

$CFLAGS="-I/usr/include/ncurses -I/usr/local/include/ncurses"
$LDFLAGS="-L/usr/local/lib"
make=FALSE
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
else
$CFLAGS=nil
have_library("termcap", "tgetent")
if have_library("curses", "initscr")
make=TRUE
end
end
if make then
for f in ["isendwin", "ungetch", "beep"]
have_func(f)
end
create_makefile("curses")
end