ext/xml/extconf.rb in libxml-ruby-0.3.8.4 vs ext/xml/extconf.rb in libxml-ruby-0.5.0
- old
+ new
@@ -35,18 +35,21 @@
end
$CFLAGS = saveflags
end
unless have_library('z', 'inflate') or
+ have_library('zlib', 'inflate') or
have_library('zlib1', 'inflate')
crash('need zlib')
else
$defs.push('-DHAVE_ZLIB_H')
end
unless have_library('iconv','iconv_open') or
have_library('iconv','libiconv_open') or
+ have_library('libiconv', 'libiconv_open') or
+ have_library('libiconv', 'iconv_open') or
have_library('c','iconv_open') or
have_library('recode','iconv_open') or
have_library('iconv')
crash(<<EOL)
need libiconv.
@@ -78,19 +81,15 @@
--with-xml2-lib=/path/to/libxml2/lib
--with-xml2-include=/path/to/libxml2/include
EOL
end
-unless have_library('xml2', 'xmlDocFormatDump')
+unless have_func('xmlDocFormatDump')
crash('Your version of libxml2 is too old. Please upgrade.')
end
unless have_func('docbCreateFileParserCtxt')
crash('Need docbCreateFileParserCtxt')
-end
-
-if try_compile('int main() { return 0; }','-Wall')
- $CFLAGS << ' -Wall'
end
$CFLAGS << ' ' << $INCFLAGS
$INSTALLFILES = [["libxml.rb", "$(RUBYLIBDIR)", "../xml"]]