Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-10-31 00:02:59 +0400
committerKenneth Heafield <github@kheafield.com>2012-10-31 00:02:59 +0400
commit630b4d4ea9e63ca718b887ef345dca3ab73e2312 (patch)
treea92853daa7ce4a80840a7b8c373e23513ce4b15b /util/Jamfile
parentb6b2e35190833ed36bfcfb6291a5827be5284bf5 (diff)
Get more paranoid by checking for headers too
Diffstat (limited to 'util/Jamfile')
-rw-r--r--util/Jamfile4
1 files 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 = <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 ;