Get more paranoid by checking for headers too

This commit is contained in:
Kenneth Heafield 2012-10-30 20:02:59 +00:00
parent b6b2e35190
commit 630b4d4ea9

View File

@ -1,11 +1,11 @@
local compressed_flags = <include>.. <define>HAVE_ZLIB ;
local compressed_deps = /top//z ;
if [ test_library "bz2" ] {
if [ test_library "bz2" ] && [ test_header "bzlib.h" ] {
external-lib bz2 ;
compressed_flags += <define>HAVE_BZLIB ;
compressed_deps += bz2 ;
}
if [ test_library "lzma" ] {
if [ test_library "lzma" ] && [ test_header "lzma.h" ] {
external-lib lzma ;
compressed_flags += <define>HAVE_XZLIB ;
compressed_deps += lzma ;