1999-01-20 07:59:39 +03:00
|
|
|
require 'mkmf'
|
|
|
|
|
1999-08-13 09:37:52 +04:00
|
|
|
make=false
|
1999-01-20 07:59:39 +03:00
|
|
|
have_library("mytinfo", "tgetent") if /bow/ =~ PLATFORM
|
1998-01-16 15:13:05 +03:00
|
|
|
if have_header("ncurses.h") and have_library("ncurses", "initscr")
|
1999-08-13 09:37:52 +04:00
|
|
|
make=true
|
1998-01-16 15:13:05 +03:00
|
|
|
elsif have_header("ncurses/curses.h") and have_library("ncurses", "initscr")
|
1999-08-13 09:37:52 +04:00
|
|
|
make=true
|
|
|
|
elsif have_header("curses_colr/curses.h") and have_library("cur_colr", "initscr")
|
|
|
|
make=true
|
1998-01-16 15:13:05 +03:00
|
|
|
else
|
|
|
|
have_library("termcap", "tgetent")
|
|
|
|
if have_library("curses", "initscr")
|
1999-08-13 09:37:52 +04:00
|
|
|
make=true
|
1998-01-16 15:13:05 +03:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
1999-08-13 09:37:52 +04:00
|
|
|
if make
|
1999-01-20 07:59:39 +03:00
|
|
|
for f in %w(isendwin ungetch beep doupdate flash deleteln wdeleteln)
|
1998-01-16 15:13:05 +03:00
|
|
|
have_func(f)
|
|
|
|
end
|
|
|
|
create_makefile("curses")
|
|
|
|
end
|