]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
configure: fix seccomp check
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 6 Sep 2012 20:40:30 +0000 (22:40 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:18 +0000 (21:44 -0500)
Currently, if libseccomp is missing but the user explicitly requested
seccomp support using --enable-seccomp, configure silently ignores the
situation and disables seccomp support.

This is unlike all other tests that explicitly fail in such situation.

Fix that.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
(cherry picked from commit e84d5956cc6215d2f098e7b6090fc5ec4cba1be3)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
configure

index 6f457add6fea9c612baae5b8467cea60bd466b73..61fc8ef4635e1f79b48931fa0e2c10ea94d84555 100755 (executable)
--- a/configure
+++ b/configure
@@ -1395,10 +1395,10 @@ if test "$seccomp" != "no" ; then
         LIBS=`$pkg_config --libs libseccomp`
        seccomp="yes"
     else
-       seccomp="no"
        if test "$seccomp" = "yes"; then
             feature_not_found "libseccomp"
        fi
+       seccomp="no"
     fi
 fi
 ##########################################