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:
parent
c3b81f63e7
commit
dd11a58be3
2 changed files with 13 additions and 1 deletions
|
@ -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>
|
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
|
* include/ruby/win32.h: VC doesn't have ftruncate() and others, but
|
||||||
|
|
|
@ -34,12 +34,19 @@ have_library("ncurses", "tgetnum") ||
|
||||||
have_library("termcap", "tgetnum") ||
|
have_library("termcap", "tgetnum") ||
|
||||||
have_library("curses", "tgetnum")
|
have_library("curses", "tgetnum")
|
||||||
|
|
||||||
if enable_libedit
|
case enable_libedit
|
||||||
|
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
|
exit
|
||||||
end
|
end
|
||||||
|
when nil
|
||||||
|
unless ((have_readline_header("readline/readline.h") &&
|
||||||
|
have_readline_header("readline/history.h")) &&
|
||||||
|
have_library("readline", "readline"))
|
||||||
|
exit
|
||||||
|
end
|
||||||
else
|
else
|
||||||
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")) &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue