1999-01-20 07:59:32 +03:00
|
|
|
require "mkmf"
|
|
|
|
|
1999-08-13 09:37:52 +04:00
|
|
|
dir_config("readline")
|
2000-05-13 20:13:31 +04:00
|
|
|
have_library("user32", nil) if /cygwin/ === RUBY_PLATFORM
|
2000-05-18 08:32:13 +04:00
|
|
|
have_library("ncurses", "tgetnum") or
|
|
|
|
have_library("termcap", "tgetnum") or
|
|
|
|
have_library("curses", "tgetnum")
|
|
|
|
|
1999-01-20 07:59:32 +03:00
|
|
|
if have_header("readline/readline.h") and
|
|
|
|
have_header("readline/history.h") and
|
|
|
|
have_library("readline", "readline")
|
2001-05-06 19:06:00 +04:00
|
|
|
if have_func("rl_filename_completion_function")
|
|
|
|
$CFLAGS += "-DREADLINE_42_OR_LATER"
|
|
|
|
end
|
1999-01-20 07:59:32 +03:00
|
|
|
create_makefile("readline")
|
|
|
|
end
|