mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* 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
This commit is contained in:
parent
933b5ced23
commit
522627d5cc
2 changed files with 7 additions and 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>
|
Fri May 18 15:38:11 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* ext/ripper/extconf.rb: Use an exception instead of bare
|
* ext/ripper/extconf.rb: Use an exception instead of bare
|
||||||
|
|
|
@ -40,14 +40,14 @@ when true
|
||||||
unless (have_readline_header("editline/readline.h") ||
|
unless (have_readline_header("editline/readline.h") ||
|
||||||
have_readline_header("readline/readline.h")) &&
|
have_readline_header("readline/readline.h")) &&
|
||||||
have_library("edit", "readline")
|
have_library("edit", "readline")
|
||||||
exit
|
raise "libedit not found"
|
||||||
end
|
end
|
||||||
when false
|
when false
|
||||||
# --disable-libedit
|
# --disable-libedit
|
||||||
unless ((have_readline_header("readline/readline.h") &&
|
unless ((have_readline_header("readline/readline.h") &&
|
||||||
have_readline_header("readline/history.h")) &&
|
have_readline_header("readline/history.h")) &&
|
||||||
have_library("readline", "readline"))
|
have_library("readline", "readline"))
|
||||||
exit
|
raise "readline not found"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
# does not specify
|
# does not specify
|
||||||
|
@ -57,7 +57,7 @@ else
|
||||||
have_library("edit", "readline"))) ||
|
have_library("edit", "readline"))) ||
|
||||||
(have_readline_header("editline/readline.h") &&
|
(have_readline_header("editline/readline.h") &&
|
||||||
have_library("edit", "readline"))
|
have_library("edit", "readline"))
|
||||||
exit
|
raise "readline nor libedit not found"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue