1 ########################################################
2 # Compile with compression support
10 AC_MSG_CHECKING([for ZLIB support])
13 [ --with-zlib ZLIB support (default yes)],
16 with_zlib_support=$withval
20 AC_MSG_RESULT($with_zlib_support)
22 if test x"$with_zlib_support" != x"no"; then
24 AC_MSG_CHECKING(whether ZLIB support is available)AC_CHECK_HEADERS(zlib.h)
25 if test x"$ac_cv_header_zlib_h" != x"yes"; then
29 if test x"$with_zlib_support" != x"no"; then
30 AC_CHECK_LIB_EXT(z, ZLIB_LIBS, inflate)
32 if test x"$ac_cv_lib_ext_z_inflate" = x"yes"; then
33 AC_DEFINE(HAVE_ZLIB,1,[Whether zlib is available])
35 SMB_EXT_LIB_ENABLE(ZLIB,YES)
43 AC_MSG_RESULT($with_zlib_support)
45 # for now enable this always but maybe all fields are empty
46 # TODO: move compression methods to seperate files each
47 SMB_EXT_LIB_ENABLE(ZLIB,YES)
49 SMB_EXT_LIB(ZLIB,[${ZLIB_LIBS}],[${ZLIB_CFLAGS}],[${ZLIB_CPPFLAGS}],[${ZLIB_LDFLAGS}])