diff options
Diffstat (limited to 'source4/lib/zlib.m4')
-rw-r--r-- | source4/lib/zlib.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/lib/zlib.m4 b/source4/lib/zlib.m4 new file mode 100644 index 0000000000..7b967fc8d2 --- /dev/null +++ b/source4/lib/zlib.m4 @@ -0,0 +1,12 @@ + +AC_CHECK_HEADERS(zlib.h) + +# we require this new function... +AC_CHECK_LIB_EXT(z, ZLIB_LIBS, inflateReset2) + +if test x"$ac_cv_header_zlib_h" = x"yes" -a \ + x"$ac_cv_lib_ext_z_inflateReset2" = x"yes"; then + SMB_EXT_LIB(ZLIB, [${ZLIB_LIBS}]) +else + SMB_INCLUDE_MK(lib/zlib.mk) +fi |