logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

gtk+-3.22.20-libcloudproviders-automagic.patch (1904B)


  1. From 4588c9c6463d8958d8305caafa58ea5c263fd352 Mon Sep 17 00:00:00 2001
  2. From: Gilles Dartiguelongue <eva@gentoo.org>
  3. Date: Tue, 16 Jan 2018 09:07:38 +0100
  4. Subject: [PATCH] Fix libcloudproviders check
  5. Use autotools managed variables and make use of pkgconfig macros.
  6. ---
  7. configure.ac | 26 +++++++++++++-------------
  8. 1 file changed, 13 insertions(+), 13 deletions(-)
  9. diff --git a/configure.ac b/configure.ac
  10. index 24110386b4..cebe66c2e5 100644
  11. --- a/configure.ac
  12. +++ b/configure.ac
  13. @@ -349,8 +349,10 @@ AC_ARG_ENABLE(mir-backend,
  14. AC_ARG_ENABLE(cloudproviders,
  15. [AS_HELP_STRING([--enable-cloudproviders],
  16. - [enable libcloudproviders integration])],
  17. - [cloudproviders_set=yes])
  18. + [enable libcloudproviders integration])
  19. + ],
  20. + [],
  21. + [enable_cloudproviders=yes])
  22. if test -z "$backend_set"; then
  23. if test "$platform_win32" = yes; then
  24. @@ -1350,17 +1352,15 @@ fi
  25. # Check for libcloudproviders
  26. CLOUDPROVIDER_PACKAGES=""
  27. -if test "x$cloudproviders_set" = "xyes"; then
  28. - CLOUDPROVIDER_PACKAGES="cloudproviders >= cloudproviders_required_version"
  29. - if $PKG_CONFIG --exists $CLOUDPROVIDER_PACKAGES ; then
  30. - AC_DEFINE(HAVE_CLOUDPROVIDERS, [1],
  31. - [Define if libcloudproviders is available]
  32. - )
  33. - else
  34. - AC_MSG_ERROR([
  35. -*** libcloudproviders not found.])
  36. - fi
  37. -fi
  38. +AS_IF([test "$enable_cloudproviders" = "yes"],
  39. + [
  40. + CLOUDPROVIDER_PACKAGES="cloudproviders >= cloudproviders_required_version"
  41. + PKG_CHECK_EXISTS(
  42. + [$CLOUDPROVIDER_PACKAGES],
  43. + [AC_DEFINE(HAVE_CLOUDPROVIDERS, [1], [Define if libcloudproviders is available])],
  44. + [AC_MSG_ERROR([*** libcloudproviders not found])]
  45. + )
  46. + ])
  47. CFLAGS="$saved_cflags"
  48. LDFLAGS="$saved_ldflags"
  49. --
  50. 2.15.1