<div dir="ltr">thanks, applied both<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 21, 2014 at 8:07 AM, Tiziano Müller <span dir="ltr"><<a href="mailto:tiziano.mueller@stepping-stone.ch" target="_blank">tiziano.mueller@stepping-stone.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This makes the phodav dependency configureable.<br>
And name it after the corresponding channel.<br>
---<br>
 <a href="http://configure.ac" target="_blank">configure.ac</a> | 21 +++++++++++++++++----<br>
 1 file changed, 17 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/<a href="http://configure.ac" target="_blank">configure.ac</a> b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
index d89bd6f..70ab75c 100644<br>
--- a/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
+++ b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
@@ -270,10 +270,23 @@ AC_SUBST(GTHREAD_LIBS)<br>
 PKG_CHECK_MODULES(SOUP, libsoup-2.4)<br>
 AC_SUBST(SOUP_CFLAGS)<br>
 AC_SUBST(SOUP_LIBS)<br>
+AC_ARG_ENABLE([webdav],<br>
+  AS_HELP_STRING([--enable-webdav=@<:@auto/yes/no@:>@],<br>
+                 [Enable webdav support @<:@default=auto@:>@]),<br>
+  [],<br>
+  [enable_webdav="auto"])<br>
+<br>
+if test "x$enable_webdav" = "xno"; then<br>
+  have_phodav="no"<br>
+else<br>
+  PKG_CHECK_MODULES(PHODAV, [libphodav-1.0], [have_phodav=yes], [have_phodav=no])<br>
+  AC_SUBST(PHODAV_CFLAGS)<br>
+  AC_SUBST(PHODAV_LIBS)<br>
<br>
-PKG_CHECK_MODULES(PHODAV, [libphodav-1.0], [have_phodav=yes], [have_phodav=no])<br>
-AC_SUBST(PHODAV_CFLAGS)<br>
-AC_SUBST(PHODAV_LIBS)<br>
+  if test "x$have_phodav" = "xno" && test "x$enable_webdav" = "xyes"; then<br>
+    AC_MSG_ERROR([webdav support explicitly requested, but some required packages are not available])<br>
+  fi<br>
+fi<br>
 AS_IF([test "x$have_phodav" = "xyes"],<br>
        AC_DEFINE(USE_PHODAV, [1], [Define if supporting phodav]))<br>
<br>
@@ -754,7 +767,7 @@ AC_MSG_NOTICE([<br>
         Smartcard support:        ${have_smartcard}<br>
         USB redirection support:  ${have_usbredir} ${with_usbredir_hotplug}<br>
         DBus:                     ${have_dbus}<br>
-        PhoDAV:                   ${have_phodav}<br>
+        WebDAV support:           ${have_phodav}<br>
<br>
         Now type 'make' to build $PACKAGE<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
1.9.2<br>
<br>
_______________________________________________<br>
Spice-devel mailing list<br>
<a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Marc-André Lureau
</div>