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