3 @@ -12333,13 +12333,13 @@
7 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
8 -$as_echo_n "checking for inflateCopy in -lz... " >&6; }
9 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lzlib" >&5
10 +$as_echo_n "checking for inflateCopy in -lzlib... " >&6; }
11 if ${ac_cv_lib_z_inflateCopy+:} false; then :
12 $as_echo_n "(cached) " >&6
14 ac_check_lib_save_LIBS=$LIBS
17 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24 # You can upgrade zlib to version 1.1.4 yourself by going to
25 # http://www.gzip.org/zlib/
26 - zlib_inc = find_file('zlib.h', [], self.inc_dirs)
27 + zlib_inc = [os.environ.get('ZLIB_INCDIR')]
29 if zlib_inc is not None:
30 zlib_h = zlib_inc[0] + '/zlib.h'
31 @@ -1500,13 +1500,13 @@
32 version = line.split()[2]
34 if version >= version_req:
35 - if (self.compiler.find_library_file(self.lib_dirs, 'z')):
36 + if (self.compiler.find_library_file(self.lib_dirs, 'zlib')):
38 zlib_extra_link_args = ('-Wl,-search_paths_first',)
40 zlib_extra_link_args = ()
41 self.add(Extension('zlib', ['zlibmodule.c'],
44 extra_link_args=zlib_extra_link_args))
48 # crc32 if we have it. Otherwise binascii uses its own.
50 extra_compile_args = ['-DUSE_ZLIB_CRC32']
52 + libraries = ['zlib']
53 extra_link_args = zlib_extra_link_args
55 extra_compile_args = []