Add configure test for vdeplug library.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 19 Feb 2008 22:00:43 +0000 (23:00 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 19 Feb 2008 22:00:43 +0000 (23:00 +0100)
(This used to be commit 89590d7dfe0735093a4a5b66eeed9276df043ac9)

source4/build/smb_build/summary.pm
source4/lib/socket_wrapper/config.m4

index 4ea1ad525e3e0cec2f77ff8000e54db626b44edf..a6557fb1fed1e61d36c9f37a734bf08df924dbdc 100644 (file)
@@ -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");
index f3ffb895a90600a1dd58956c417c405316aab2e9..8ff91075bb5ecbaafefb6726e1123c4269e65168 100644 (file)
@@ -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