summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-12 09:08:08 +0000
committerkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-12 09:08:08 +0000
commitdd11a58be3d6eba910a8bcfdb888562fb64fde01 (patch)
treed5a24bc2db7b036167d66c5584c605edb958741c /ext/readline
parentc3b81f63e76fee3c09e5881eff7c2d2d60d00bab (diff)
* 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
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/extconf.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb
index 59c2a8e..685da8c 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")) &&