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 (have_readline_func): readline on Mac OS X

needs headers to detect some functions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-06-22 05:16:30 +00:00
parent fa57f78b9b
commit 3f1f29037d
2 changed files with 18 additions and 9 deletions

View file

@ -1,3 +1,8 @@
Sun Jun 22 14:16:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/readline/extconf.rb (have_readline_func): readline on Mac OS X
needs headers to detect some functions.
Sun Jun 22 09:51:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* object.c (rb_class_superclass): rdoc improvement, a patch from

View file

@ -15,6 +15,10 @@ def have_readline_var(var)
return have_var(var, $readline_headers)
end
def have_readline_func(func)
return have_func(func, $readline_headers)
end
dir_config('curses')
dir_config('ncurses')
dir_config('termcap')
@ -42,9 +46,9 @@ else
end
end
have_func("rl_filename_completion_function")
have_func("rl_username_completion_function")
have_func("rl_completion_matches")
have_readline_func("rl_filename_completion_function")
have_readline_func("rl_username_completion_function")
have_readline_func("rl_completion_matches")
have_readline_var("rl_deprep_term_function")
have_readline_var("rl_completion_append_character")
have_readline_var("rl_basic_word_break_characters")
@ -56,10 +60,10 @@ have_readline_var("rl_attempted_completion_over")
have_readline_var("rl_library_version")
# workaround for native windows.
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_event_hook")
have_func("rl_cleanup_after_signal")
have_func("rl_clear_signals")
have_func("rl_vi_editing_mode")
have_func("rl_emacs_editing_mode")
have_func("replace_history_entry")
have_func("remove_history")
have_readline_func("rl_cleanup_after_signal")
have_readline_func("rl_clear_signals")
have_readline_func("rl_vi_editing_mode")
have_readline_func("rl_emacs_editing_mode")
have_readline_func("replace_history_entry")
have_readline_func("remove_history")
create_makefile("readline")