diff options
Diffstat (limited to 'ext/iconv/extconf.rb')
-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 5e80188013..36f291c4a6 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} |