mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
e8e8568975
Signed-off-by: Ira Cooper <ira@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
31 lines
1019 B
Python
31 lines
1019 B
Python
#!/usr/bin/env python
|
|
|
|
def configure(conf):
|
|
version_check='''
|
|
#if (ZLIB_VERNUM >= 0x1230)
|
|
#else
|
|
#error "ZLIB_VERNUM < 0x1230"
|
|
#endif
|
|
z_stream *z;
|
|
inflateInit2(z, -15);
|
|
'''
|
|
|
|
if conf.CHECK_BUNDLED_SYSTEM('z', minversion='1.2.3', pkg='zlib',
|
|
checkfunctions='zlibVersion',
|
|
headers='zlib.h',
|
|
checkcode=version_check,
|
|
implied_deps='replace'):
|
|
conf.define('USING_SYSTEM_ZLIB', 1)
|
|
|
|
def build(bld):
|
|
if bld.CONFIG_SET('USING_SYSTEM_ZLIB'):
|
|
return
|
|
|
|
bld.SAMBA_LIBRARY('z',
|
|
private_library=True,
|
|
deps='replace',
|
|
allow_warnings=True,
|
|
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''')
|