Project

General

Profile

Feature #3375 ยป --disable-libedit.patch

--disable-libedit to disable libedit - shyouhei (Shyouhei Urabe), 06/01/2010 04:11 PM

View differences:

ext/readline/extconf.rb (working copy)
have_library("termcap", "tgetnum") ||
have_library("curses", "tgetnum")
if enable_libedit
case enable_libedit
when true
unless (have_readline_header("editline/readline.h") ||
have_readline_header("readline/readline.h")) &&
have_library("edit", "readline")
exit
end
when nil
unless ((have_readline_header("readline/readline.h") &&
have_readline_header("readline/history.h")) &&
have_library("readline", "readline"))
exit
end
else
unless ((have_readline_header("readline/readline.h") &&
have_readline_header("readline/history.h")) &&
    (1-1/1)