/[gentoo-x86]/app-crypt/pinentry/files/0.7.2-libcap.patch
Gentoo

Contents of /app-crypt/pinentry/files/0.7.2-libcap.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Thu Feb 23 22:43:26 2006 UTC (14 years, 6 months ago) by swegener
Branch: MAIN
File MIME type: text/x-diff
Revision bump to include optional capabilities support. Thanks to Diego in bug #108845.
(Portage version: 2.1_pre4-r1)

1 Index: pinentry-0.7.2/configure.ac
2 ===================================================================
3 --- pinentry-0.7.2.orig/configure.ac
4 +++ pinentry-0.7.2/configure.ac
5 @@ -116,11 +116,16 @@ dnl Checks for libsecmem.
6 GNUPG_CHECK_TYPEDEF(byte, HAVE_BYTE_TYPEDEF)
7 GNUPG_CHECK_TYPEDEF(ulong, HAVE_ULONG_TYPEDEF)
8
9 -AC_PATH_PROG(SETCAP, setcap, :, "$PATH:/sbin:/usr/sbin")
10 -AC_CHECK_LIB(cap, cap_set_proc, [
11 - AC_DEFINE(USE_CAPABILITIES,1,[The capabilities support library is installed])
12 - LIBCAP=-lcap
13 -])
14 +dnl Check for libcap
15 +AC_ARG_WITH([libcap], AC_HELP_STRING([--without-libcap], [Disable support for capabilities library]))
16 +
17 +if test "x$with_libcap" != "xno"; then
18 + AC_PATH_PROG(SETCAP, setcap, :, "$PATH:/sbin:/usr/sbin")
19 + AC_CHECK_LIB(cap, cap_set_proc, [
20 + AC_DEFINE(USE_CAPABILITIES,1,[The capabilities support library is installed])
21 + LIBCAP=-lcap
22 + ])
23 +fi
24 AC_SUBST(LIBCAP)
25
26 dnl

  ViewVC Help
Powered by ViewVC 1.1.20