diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/readline/extconf.rb | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Fri May 18 15:49:35 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * ext/readline/extconf.rb: Use an exception instead of bare exit. + Fri May 18 15:38:11 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * ext/ripper/extconf.rb: Use an exception instead of bare diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb index 7968de35f5..737ca749ee 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 |