Skip to content

Commit e50f31a

Browse files
authored
Merge pull request #219 from gemmaro/ext/zlib-header
Add optional zlib support detection in extconf
2 parents 1e3c3c5 + b7a05cc commit e50f31a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/libxml/extconf.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,10 @@ def crash(str)
6363
EOL
6464
end
6565

66+
# Optional zlib support via libxml2; defines HAVE_ZLIB_H if available.
67+
unless have_header("zlib.h")
68+
message "zlib not found: building without compression support\n"
69+
end
70+
6671
create_header()
6772
create_makefile('libxml_ruby')

0 commit comments

Comments
 (0)