[Spice-devel] [PATCH spice-gtk] build-sys: Add webdav_support variable to spice-client-glib-2.0.pc
Eduardo Lima (Etrunko)
etrunko at redhat.com
Fri Mar 3 18:34:54 UTC 2017
This allows us to inform the clients of this library if it was built
with support for folder sharing or not.
Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
---
configure.ac | 1 +
spice-client-glib-2.0.pc.in | 2 ++
2 files changed, 3 insertions(+)
diff --git a/configure.ac b/configure.ac
index 4fd0bd7..47ac832 100644
--- a/configure.ac
+++ b/configure.ac
@@ -207,6 +207,7 @@ AS_IF([test "x$have_phodav" = "xyes"],
AC_DEFINE([USE_PHODAV], [1], [Define if supporting phodav]))
AM_CONDITIONAL([WITH_PHODAV], [test "x$have_phodav" = "xyes"])
+AC_SUBST(have_phodav)
AC_ARG_WITH([audio],
AS_HELP_STRING([--with-audio=@<:@gstreamer/pulse/auto/no@:>@], [For legacy compatibility only]),
diff --git a/spice-client-glib-2.0.pc.in b/spice-client-glib-2.0.pc.in
index 27d6886..9695099 100644
--- a/spice-client-glib-2.0.pc.in
+++ b/spice-client-glib-2.0.pc.in
@@ -3,6 +3,8 @@ exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
+webdav_support=@have_phodav@
+
Name: spice-client-glib-2.0
Description: SPICE Client GLib 2.0 library
Version: @VERSION@
--
2.9.3
More information about the Spice-devel
mailing list