|
|
5544c1 |
From 4a151cbe99766a8da4582234a93d4292f064108f Mon Sep 17 00:00:00 2001
|
|
|
5544c1 |
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
|
5544c1 |
Date: Thu, 6 Sep 2012 22:40:30 +0200
|
|
|
5544c1 |
Subject: [PATCH] configure: fix seccomp check
|
|
|
5544c1 |
MIME-Version: 1.0
|
|
|
5544c1 |
Content-Type: text/plain; charset=UTF-8
|
|
|
5544c1 |
Content-Transfer-Encoding: 8bit
|
|
|
5544c1 |
|
|
|
5544c1 |
Currently, if libseccomp is missing but the user explicitly requested
|
|
|
5544c1 |
seccomp support using --enable-seccomp, configure silently ignores the
|
|
|
5544c1 |
situation and disables seccomp support.
|
|
|
5544c1 |
|
|
|
5544c1 |
This is unlike all other tests that explicitly fail in such situation.
|
|
|
5544c1 |
|
|
|
5544c1 |
Fix that.
|
|
|
5544c1 |
|
|
|
5544c1 |
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
|
5544c1 |
Reviewed-by: Andreas Färber <afaerber@suse.de>
|
|
|
5544c1 |
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
|
|
|
5544c1 |
(cherry picked from commit e84d5956cc6215d2f098e7b6090fc5ec4cba1be3)
|
|
|
5544c1 |
|
|
|
5544c1 |
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
|
|
|
5544c1 |
---
|
|
|
5544c1 |
configure | 2 +-
|
|
|
5544c1 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
5544c1 |
|
|
|
5544c1 |
diff --git a/configure b/configure
|
|
|
5544c1 |
index dcd8e7b..9e53cc2 100755
|
|
|
5544c1 |
--- a/configure
|
|
|
5544c1 |
+++ b/configure
|
|
|
5544c1 |
@@ -1405,10 +1405,10 @@ if test "$seccomp" != "no" ; then
|
|
|
5544c1 |
LIBS=`$pkg_config --libs libseccomp`
|
|
|
5544c1 |
seccomp="yes"
|
|
|
5544c1 |
else
|
|
|
5544c1 |
- seccomp="no"
|
|
|
5544c1 |
if test "$seccomp" = "yes"; then
|
|
|
5544c1 |
feature_not_found "libseccomp"
|
|
|
5544c1 |
fi
|
|
|
5544c1 |
+ seccomp="no"
|
|
|
5544c1 |
fi
|
|
|
5544c1 |
fi
|
|
|
5544c1 |
##########################################
|
|
|
5544c1 |
--
|
|
|
5544c1 |
1.7.12.1
|
|
|
5544c1 |
|