diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-22 05:16:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-22 05:16:30 +0000 |
commit | 3f1f29037d2fb138a6f645823906320790bee95f (patch) | |
tree | f36a89eaec13b59c55031212d318b4c79941a5c7 /ext | |
parent | fa57f78b9b1c5a1e80ddc5114949479791e02872 (diff) | |
download | ruby-3f1f29037d2fb138a6f645823906320790bee95f.tar.gz |
* 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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/readline/extconf.rb | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb index 8856dc9f9b..cd500ceec8 100644 --- a/ext/readline/extconf.rb +++ b/ext/readline/extconf.rb @@ -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") |