summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-18 07:02:10 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-18 07:02:10 +0000
commit522627d5cc3b435b2f510057b24c75ad1dd26d7d (patch)
tree1e39334746d23fe3a30eeeef17da8bfd6a1bbea2 /ext/readline
parent933b5ced230b8b02c03133c55d65b23cbce22cb3 (diff)
* ext/readline/extconf.rb: Use an exception instead of bare exit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/extconf.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb
index 7968de3..737ca74 100644
--- a/ext/readline/extconf.rb
+++ b/ext/readline/extconf.rb
@@ -40,14 +40,14 @@ when true
unless (have_readline_header("editline/readline.h") ||
have_readline_header("readline/readline.h")) &&
have_library("edit", "readline")
- exit
+ raise "libedit not found"
end
when false
# --disable-libedit
unless ((have_readline_header("readline/readline.h") &&
have_readline_header("readline/history.h")) &&
have_library("readline", "readline"))
- exit
+ raise "readline not found"
end
else
# does not specify
@@ -57,7 +57,7 @@ else
have_library("edit", "readline"))) ||
(have_readline_header("editline/readline.h") &&
have_library("edit", "readline"))
- exit
+ raise "readline nor libedit not found"
end
end