summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-06 14:08:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-06 14:08:56 +0000
commitc3f1e2cd5c2cca19c715c4decd87c1fe24c9c006 (patch)
treec95afc6ae24d6be68e05243ffb998a83b6706d30
parente5af7b833f3d6ca47fb0f610f9e01ed6b07a02e7 (diff)
downloadruby-c3f1e2cd5c2cca19c715c4decd87c1fe24c9c006.tar.gz
ruby-c3f1e2cd5c2cca19c715c4decd87c1fe24c9c006.tar.xz
ruby-c3f1e2cd5c2cca19c715c4decd87c1fe24c9c006.zip
* ext/iconv/extconf.rb: use 3rd argument to have_library.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/iconv/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/iconv/extconf.rb b/ext/iconv/extconf.rb
index 359771e8a..a9d0cfb5e 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 <iconv.h>")}
+ 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}