public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/miredo/files: miredo-1.2.5-configure-libcap.diff
@ 2012-06-20  6:22 Michael Weber (xmw)
  0 siblings, 0 replies; only message in thread
From: Michael Weber (xmw) @ 2012-06-20  6:22 UTC (permalink / raw
  To: gentoo-commits

xmw         12/06/20 06:22:44

  Added:                miredo-1.2.5-configure-libcap.diff
  Log:
  Revbump to improve ebuils (thanks for suggestions by Bertrand Jacquin and Diego Elio Pettenò on bug 421171), drop old.
  
  (Portage version: 2.1.10.65/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-misc/miredo/files/miredo-1.2.5-configure-libcap.diff

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miredo/files/miredo-1.2.5-configure-libcap.diff?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miredo/files/miredo-1.2.5-configure-libcap.diff?rev=1.1&content-type=text/plain

Index: miredo-1.2.5-configure-libcap.diff
===================================================================
--- configure.ac.ori	2012-06-14 21:55:13.756603416 +0200
+++ configure.ac	2012-06-14 23:12:01.425399836 +0200
@@ -150,16 +150,23 @@
 
 # POSIX capabilities
 LIBCAP=""
-AC_CHECK_HEADERS([sys/capability.h], [
-	AC_CHECK_LIB(cap, cap_set_proc, [
-		LIBCAP="-lcap"
-		AC_DEFINE(HAVE_LIBCAP, 1,
-			  [Define to 1 if you have the `cap' library (-lcap).])
-	])
+AC_ARG_WITH(libcap,
+  AS_HELP_STRING([--with-libcap], [enable POSIX 1003.1e capabilities]),
+    with_libcap=$withval,
+    with_libcap=auto)
+AC_MSG_CHECKING([whether to enable POSIX 1003.1e capabilities])
+AC_MSG_RESULT($with_libcap)
+
+AS_IF([test "x$with_libcap" != "xno"], [
+  AC_CHECK_HEADERS([sys/capability.h])
+  AC_CHECK_LIB(cap, cap_set_proc, [
+    LIBCAP="-lcap"
+    AC_DEFINE(HAVE_LIBCAP, 1,
+      [Define to 1 if you have the cap library (-lcap).])
+  ])
 ])
 AC_SUBST(LIBCAP)
 
-
 # Judy
 AC_ARG_WITH(Judy,
 	    [AS_HELP_STRING(--with-Judy,






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-20  6:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-20  6:22 [gentoo-commits] gentoo-x86 commit in net-misc/miredo/files: miredo-1.2.5-configure-libcap.diff Michael Weber (xmw)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox