From aa6ece9fc67894c8bceb633425a72ab1866b7df1 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 6 Nov 2005 14:08:56 +0000 Subject: * ext/iconv/extconf.rb: use 3rd argument to have_library. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/iconv/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/iconv/extconf.rb b/ext/iconv/extconf.rb index 359771e8a9..a9d0cfb5e6 100644 --- a/ext/iconv/extconf.rb +++ b/ext/iconv/extconf.rb @@ -6,7 +6,7 @@ conf = File.exist?(File.join($srcdir, "config.charset")) conf = with_config("config-charset", enable_config("config-charset", conf)) if have_func("iconv", "iconv.h") or - have_library("iconv", "iconv") {|s| s.sub(/(?=\n\/\*top\*\/)/, "#include ")} + have_library("iconv", "iconv", "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} -- cgit v1.2.3