diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-03-25 13:40:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:16 -0500 |
commit | 5a9ceee7a524293c67d4c32edde9da32a877ecce (patch) | |
tree | 54a0bb998f5d8409cf173d3d2559520e65d7f383 /source4/librpc/config.m4 | |
parent | 2fa732c6251f6dd23c3c8ef1facf638c9c531bdd (diff) | |
download | samba-5a9ceee7a524293c67d4c32edde9da32a877ecce.tar.gz samba-5a9ceee7a524293c67d4c32edde9da32a877ecce.tar.bz2 samba-5a9ceee7a524293c67d4c32edde9da32a877ecce.zip |
r6061: add start of compression support in our rpc code
this is not complete cuurently...
but I want other people to test it and help me on finishing it.
(try to change the #if 0 in torture/rpc/drsuapi.c into #if 1)
metze
(This used to be commit 335adef37082a78e0426decb715629bd778e6582)
Diffstat (limited to 'source4/librpc/config.m4')
-rw-r--r-- | source4/librpc/config.m4 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/source4/librpc/config.m4 b/source4/librpc/config.m4 new file mode 100644 index 0000000000..d67e880a38 --- /dev/null +++ b/source4/librpc/config.m4 @@ -0,0 +1,35 @@ +######################################################## +# Compile with compression support + +with_zlib_support=auto +ZLIB_LIBS="" +ZLIB_CFLAGS="" +ZLIB_CPPFLAGS="" +ZLIB_LDFLAGS="" + +AC_CHECK_HEADERS(zlib.h) +if test x"$ac_cv_header_zlib_h" != x"yes"; then + with_zlib_support=no +fi + +if test x"$with_zlib_support" != x"no"; then + AC_CHECK_LIB_EXT(z, ZLIB_LIBS, inflate) + + if test x"$ac_cv_lib_ext_z_inflate" = x"yes"; then + AC_DEFINE(HAVE_ZLIB,1,[Whether zlib is available]) + with_zlib_support=yes + SMB_EXT_LIB_ENABLE(ZLIB,YES) + else + ZLIB_LIBS="" + with_zlib_support=no + fi + LIBS=$ac_save_LIBS +fi +AC_MSG_CHECKING(whether ZLIB support is available) +AC_MSG_RESULT($with_zlib_support) + +# for now enable this always but maybe all fields are empty +# TODO: move compression methods to seperate files each +SMB_EXT_LIB_ENABLE(ZLIB,YES) + +SMB_EXT_LIB(ZLIB,[${ZLIB_LIBS}],[${ZLIB_CFLAGS}],[${ZLIB_CPPFLAGS}],[${ZLIB_LDFLAGS}]) |