1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

28 lines
953 B
Plaintext
Raw Normal View History

#!/usr/bin/env python
2010-03-07 17:35:20 +11:00
def configure(conf):
conf.CHECK_HEADERS('zlib.h')
conf.CHECK_FUNCS_IN('zlibVersion', 'z')
conf.CHECK_CODE('''
#if (ZLIB_VERNUM >= 0x1230)
#else
#error "ZLIB_VERNUM < 0x1230"
#endif
''',
headers='zlib.h',
local_include=False,
msg='Checking for ZLIB_VERNUM >= 0x1230',
2010-03-07 17:35:20 +11:00
define='HAVE_ZLIB')
def build(bld):
if bld.CONFIG_SET('HAVE_ZLIB'):
bld.TARGET_ALIAS('z', 'ZLIB')
else:
bld.SAMBA_LIBRARY('ZLIB',
private_library=True,
2010-03-28 21:06:26 +11:00
deps='replace',
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''')