[gvfs] build: admin backend needs libcap



commit 2ca6dd976a3e45cca3cdebf8fb9468f62e89947a
Author: Andreas Henriksson <andreas fatal se>
Date:   Thu Aug 11 17:12:14 2016 +0200

    build: admin backend needs libcap
    
    Make sure to check for libcap availability for building the
    admin backend to avoid potentially running into:
    
    gvfsbackendadmin.c:27:28: fatal error: sys/capability.h: No such file or directory
     #include <sys/capability.h>
                                ^
    compilation terminated.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769747

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ce9c50f..6ccb1e1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -132,7 +132,7 @@ AC_ARG_ENABLE([admin], [AS_HELP_STRING([--disable-admin],[build without admin ba
 msg_admin=no
 
 if test "x$enable_admin" != "xno"; then
-  PKG_CHECK_MODULES([ADMIN], [polkit-gobject-1], [msg_admin=yes])
+  PKG_CHECK_MODULES([ADMIN], [polkit-gobject-1 libcap], [msg_admin=yes])
 
   if test "x$msg_admin" = "xyes"; then
     AC_DEFINE([HAVE_ADMIN], 1, [Define to 1 if admin backend is going to be built])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]