From 630b4d4ea9e63ca718b887ef345dca3ab73e2312 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Tue, 30 Oct 2012 20:02:59 +0000 Subject: [PATCH] Get more paranoid by checking for headers too --- util/Jamfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/Jamfile b/util/Jamfile index 0d271d307..9209708b0 100644 --- a/util/Jamfile +++ b/util/Jamfile @@ -1,11 +1,11 @@ local compressed_flags = .. HAVE_ZLIB ; local compressed_deps = /top//z ; -if [ test_library "bz2" ] { +if [ test_library "bz2" ] && [ test_header "bzlib.h" ] { external-lib bz2 ; compressed_flags += HAVE_BZLIB ; compressed_deps += bz2 ; } -if [ test_library "lzma" ] { +if [ test_library "lzma" ] && [ test_header "lzma.h" ] { external-lib lzma ; compressed_flags += HAVE_XZLIB ; compressed_deps += lzma ;