summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-21 04:20:33 +0000
committerkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-21 04:20:33 +0000
commit1daac53ce7f4fa0d8637e48a198cc5a1d896881e (patch)
treea85eadff2f306ae1fffda3c773b0d75f17dea6ef /ext/readline
parent1d110a14a44dce8a34be74821490a0ce303a64dd (diff)
* ext/readline/extconf.rb: fixed bug, specify --disable-libedit
then disable libedit, does not specify then check readline and libedit if failed checking readline. (fixes #3375) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/extconf.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb
index 685da8c..b8e9e0f 100644
--- a/ext/readline/extconf.rb
+++ b/ext/readline/extconf.rb
@@ -36,18 +36,21 @@ have_library("ncurses", "tgetnum") ||
case enable_libedit
when true
+ # --enable-libedit
unless (have_readline_header("editline/readline.h") ||
have_readline_header("readline/readline.h")) &&
have_library("edit", "readline")
exit
end
-when nil
+when false
+ # --disable-libedit
unless ((have_readline_header("readline/readline.h") &&
have_readline_header("readline/history.h")) &&
have_library("readline", "readline"))
exit
end
else
+ # does not specify
unless ((have_readline_header("readline/readline.h") &&
have_readline_header("readline/history.h")) &&
(have_library("readline", "readline") ||