diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-25 06:33:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-25 06:33:11 +0000 |
commit | 38d5c974114f8b2c8a2a0f9923c81155d8cbd80f (patch) | |
tree | b15c057c2e8b0192796dd705202e3ca4cbb02c3c /ext/iconv | |
parent | 59dc968d8d80f00eb10f7616643c2c808ff17eaf (diff) | |
download | ruby-38d5c974114f8b2c8a2a0f9923c81155d8cbd80f.tar.gz ruby-38d5c974114f8b2c8a2a0f9923c81155d8cbd80f.tar.xz ruby-38d5c974114f8b2c8a2a0f9923c81155d8cbd80f.zip |
* ext/iconv/extconf.rb: check stricter. [ruby-talk:104501]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/iconv')
-rw-r--r-- | ext/iconv/extconf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/iconv/extconf.rb b/ext/iconv/extconf.rb index 5e8018801..36f291c4a 100644 --- a/ext/iconv/extconf.rb +++ b/ext/iconv/extconf.rb @@ -5,8 +5,8 @@ dir_config("iconv") conf = File.exist?(File.join($srcdir, "config.charset")) conf = with_config("config-charset", enable_config("config-charset", conf)) -if have_header("iconv.h") - have_library("iconv", "iconv") {|s| s.sub(/(?=\n\/\*top\*\/)/, "#include <iconv.h>")} +if have_func("iconv", "iconv.h") or + have_library("iconv", "iconv") {|s| s.sub(/(?=\n\/\*top\*\/)/, "#include <iconv.h>")} if checking_for("const of iconv() 2nd argument") do create_tmpsrc(cpp_include("iconv.h") + "---> iconv(cd,0,0,0,0) <---") src = xpopen(cpp_command("")) {|f|f.read} |