From dd11a58be3d6eba910a8bcfdb888562fb64fde01 Mon Sep 17 00:00:00 2001 From: kouji Date: Tue, 12 Apr 2011 09:08:08 +0000 Subject: [PATCH] * ext/readline/extconf.rb: --disable-libedit to disable libedit. fixes #4550 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/readline/extconf.rb | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dc53386cc2..cf82d4fb51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 12 18:07:13 2011 TAKAO Kouji + + * ext/readline/extconf.rb: --disable-libedit to disable + libedit. fixes #4550 + Tue Apr 12 10:37:39 2011 NAKAMURA Usaku * include/ruby/win32.h: VC doesn't have ftruncate() and others, but diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb index 59c2a8e95d..685da8c5bf 100644 --- a/ext/readline/extconf.rb +++ b/ext/readline/extconf.rb @@ -34,12 +34,19 @@ have_library("ncurses", "tgetnum") || 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")) &&