1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
kouji 2011-04-12 09:08:08 +00:00
parent c3b81f63e7
commit dd11a58be3
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Apr 12 18:07:13 2011 TAKAO Kouji <kouji@takao7.net>
* ext/readline/extconf.rb: --disable-libedit to disable
libedit. fixes #4550
Tue Apr 12 10:37:39 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* include/ruby/win32.h: VC doesn't have ftruncate() and others, but

View file

@ -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")) &&