summaryrefslogtreecommitdiff
path: root/package/miredo/patches/patch-configure_ac
blob: 6dacab77ec67bef7e1dc6755e944a169a226f8a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- miredo-1.2.6.orig/configure.ac	2013-05-23 17:51:41.000000000 +0200
+++ miredo-1.2.6/configure.ac	2014-06-25 18:17:49.829469301 +0200
@@ -55,8 +55,6 @@ AM_SILENT_RULES([yes])
 # Checks for libraries.
 AS_MESSAGE([checking required libraries...])
 AM_BINRELOC
-AM_GNU_GETTEXT_VERSION([0.18.1])
-AM_GNU_GETTEXT([external])
 
 LIBRT=""
 AC_CHECK_LIB(rt, clock_gettime, [LIBRT="-lrt"])
@@ -149,12 +147,17 @@ LIBS="$LIBS_save"
 AS_MESSAGE([checking optional features...])
 
 # POSIX capabilities
+AC_ARG_WITH(libcap,
+	    [AS_HELP_STRING(--with-libcap,
+			    [use POSIX capabilities (default auto)])])
 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).])
+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)