summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-19 23:00:43 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-19 23:00:43 +0100
commit836bab841cff78c40714048f8024535cb7a147f9 (patch)
tree2c1ec6da55774ecfc26613e00ae9934be8c9db6c /source4
parent1507b886f8093f38cf84d62236fb076395557b4d (diff)
downloadsamba-836bab841cff78c40714048f8024535cb7a147f9.tar.gz
samba-836bab841cff78c40714048f8024535cb7a147f9.tar.bz2
samba-836bab841cff78c40714048f8024535cb7a147f9.zip
Add configure test for vdeplug library.
(This used to be commit 89590d7dfe0735093a4a5b66eeed9276df043ac9)
Diffstat (limited to 'source4')
-rw-r--r--source4/build/smb_build/summary.pm3
-rw-r--r--source4/lib/socket_wrapper/config.m47
2 files changed, 10 insertions, 0 deletions
diff --git a/source4/build/smb_build/summary.pm b/source4/build/smb_build/summary.pm
index 4ea1ad525e..a6557fb1fe 100644
--- a/source4/build/smb_build/summary.pm
+++ b/source4/build/smb_build/summary.pm
@@ -53,6 +53,9 @@ sub show($$)
showitem($output, "using libblkid", ["BLKID"]);
showitem($output, "using iconv", ["ICONV"]);
showitem($output, "using pam", ["PAM"]);
+ if (enabled($config->{developer})) {
+ showitem($output, "using VDE", ["VDEPLUG"]);
+ }
showitem($output, "python bindings", ["LIBPYTHON"]);
showisexternal($output, "popt", "LIBPOPT");
showisexternal($output, "talloc", "LIBTALLOC");
diff --git a/source4/lib/socket_wrapper/config.m4 b/source4/lib/socket_wrapper/config.m4
index f3ffb895a9..8ff91075bb 100644
--- a/source4/lib/socket_wrapper/config.m4
+++ b/source4/lib/socket_wrapper/config.m4
@@ -20,3 +20,10 @@ fi
AC_SUBST(DEFAULT_TEST_OPTIONS)
AC_SUBST(HAVE_SOCKET_WRAPPER)
AC_SUBST(SOCKET_WRAPPER_OBJS)
+
+# Look for the vdeplug library
+AC_CHECK_HEADERS(libvdeplug.h)
+if test x"$ac_cv_header_libvdeplug_h" = xyes; then
+ AC_DEFINE(HAVE_VDEPLUG, 1, [Whether the VDE plug library is available])
+ SMB_EXT_LIB(VDEPLUG,[-lvdeplug],[],[],[])
+fi