--- configure
+++ configure
@@ -19904,14 +19904,14 @@
       ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
       ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
       py_check_lib_save_LIBS=$LIBS
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
-printf %s "checking for inflateCopy in -lz... " >&6; }
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lzlib" >&5
+printf %s "checking for inflateCopy in -lzlib... " >&6; }
 if test ${ac_cv_lib_z_inflateCopy+y}
 then :
   printf %s "(cached) " >&6
 else $as_nop
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lz  $LIBS"
+LIBS="-lzlib  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
