diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-26 14:29:45 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:27:07 +1000 |
commit | 42bad41cedfc717cfb6c80744bef6b1570ae502b (patch) | |
tree | 8d694db167804818568d6c1660f234d4ad9b8278 | |
parent | 9ddd9de59b94580ca1bf141e85e26d92ede2d701 (diff) | |
download | samba-42bad41cedfc717cfb6c80744bef6b1570ae502b.tar.gz samba-42bad41cedfc717cfb6c80744bef6b1570ae502b.tar.bz2 samba-42bad41cedfc717cfb6c80744bef6b1570ae502b.zip |
s4-waf: cope with systems with zlib versions that are too old
-rw-r--r-- | lib/zlib/wscript | 11 | ||||
-rw-r--r-- | source4/wscript_build | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lib/zlib/wscript b/lib/zlib/wscript index 705fe90d9c..51e4690869 100644 --- a/lib/zlib/wscript +++ b/lib/zlib/wscript @@ -9,3 +9,14 @@ def configure(conf): #endif ''', define='HAVE_ZLIB') + +def build(bld): + if bld.CONFIG_SET('HAVE_ZLIB'): + bld.TARGET_ALIAS('z', 'ZLIB') + else: + bld.SAMBA_LIBRARY('ZLIB', + source='''adler32.c compress.c crc32.c gzio.c + uncompr.c deflate.c trees.c zutil.c + inflate.c infback.c inftrees.c inffast.c''') + + diff --git a/source4/wscript_build b/source4/wscript_build index 79e07deb06..5d46ca48b8 100644 --- a/source4/wscript_build +++ b/source4/wscript_build @@ -15,7 +15,6 @@ bld.SAMBA_MKVERSION('version.h') # this sets up some aliases bld.TARGET_ALIAS('attr', 'XATTR') bld.TARGET_ALIAS('tevent', 'LIBTEVENT_EXT') -bld.TARGET_ALIAS('z', 'ZLIB') bld.TARGET_ALIAS('sasl2', 'SASL') bld.TARGET_ALIAS('RPC_NDR_SRVSVC', 'NDR_SRVSVC') bld.TARGET_ALIAS('RPC_NDR_MGMT', 'dcerpc_mgmt') @@ -78,6 +77,7 @@ bld.BUILD_SUBDIR('../lib/tdr') bld.BUILD_SUBDIR('../lib/tsocket') bld.BUILD_SUBDIR('../lib/crypto') bld.BUILD_SUBDIR('../lib/torture') +bld.BUILD_SUBDIR('../lib/zlib') bld.BUILD_SUBDIR('lib') bld.BUILD_SUBDIR('lib/com') bld.BUILD_SUBDIR('smb_server') |