[Spice-devel] [PATCH 1/2] Introduce --enable/disable-folder-sharing option
Tiziano Müller
tiziano.mueller at stepping-stone.ch
Tue May 20 15:38:58 PDT 2014
Hi Marc-André
Am 20.05.2014 19:31, schrieb Marc-André Lureau:
>
>
> ----- Original Message -----
>> This makes the phodav dependency configureable & optional.
>
> Well, it is already optional, if phodav isn't available.
>
> In general, I prefer not having a lot of options, but since that doesn't change default behaviour, I guess it's fine.
Some of us are on systems where we do not control the build environment entirely
(Gentoo) and would have to install phodav always in order to avoid "magic"
dependencies.
> I also have a preference for the name of the channel instead --enable-webdav. (we could have other mechanisms/channels later on)
>
> Do you agree with that? Do you have commit access btw?
That's fine with me, I will change it. No, I don't have commit access.
>
>> ---
>> configure.ac | 19 ++++++++++++++++---
>> 1 file changed, 16 insertions(+), 3 deletions(-)
>>
>> diff --git a/configure.ac b/configure.ac
>> index d89bd6f..608d69c 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -270,10 +270,23 @@ AC_SUBST(GTHREAD_LIBS)
>> PKG_CHECK_MODULES(SOUP, libsoup-2.4)
>> AC_SUBST(SOUP_CFLAGS)
>> AC_SUBST(SOUP_LIBS)
>> +AC_ARG_ENABLE([folder-sharing],
>> + AS_HELP_STRING([--enable-folder-sharing=@<:@auto/yes/no@:>@],
>> + [Enable folder-sharing support @<:@default=auto@:>@]),
>> + [],
>> + [enable_folder_sharing="auto"])
>> +
>> +if test "x$enable_folder_sharing" = "xno"; then
>> + have_phodav="no"
>> +else
>> + PKG_CHECK_MODULES(PHODAV, [libphodav-1.0], [have_phodav=yes],
>> [have_phodav=no])
>> + AC_SUBST(PHODAV_CFLAGS)
>> + AC_SUBST(PHODAV_LIBS)
>>
>> -PKG_CHECK_MODULES(PHODAV, [libphodav-1.0], [have_phodav=yes],
>> [have_phodav=no])
>> -AC_SUBST(PHODAV_CFLAGS)
>> -AC_SUBST(PHODAV_LIBS)
>> + if test "x$have_phodav" = "xno" && test "x$enable_folder_sharing" =
>> "xyes"; then
>> + AC_MSG_ERROR([folder-sharing support explicitly requested, but some
>> required packages are not available])
>> + fi
>> +fi
>> AS_IF([test "x$have_phodav" = "xyes"],
>> AC_DEFINE(USE_PHODAV, [1], [Define if supporting phodav]))
>>
>> --
>> 1.9.2
>>
>> _______________________________________________
>> Spice-devel mailing list
>> Spice-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>>
--
Besuchen Sie uns am 16. Mai 2014 am Cloud Computing in der Praxis Anlass
im Schichtwechsel! Mehr Informationen und kostenlose Anmeldung finden
Sie unter:
www.stepping-stone.ch/schichtwechsel
stepping stone GmbH
Neufeldstrasse 9
CH-3012 Bern
Telefon: +41 31 332 53 63
www.stepping-stone.ch
tiziano.mueller@@stepping-stone.ch
More information about the Spice-devel
mailing list