From patchwork Fri May 26 05:40:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Rytarowski X-Patchwork-Id: 9749725 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8572860249 for ; Fri, 26 May 2017 05:49:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E4A4283BB for ; Fri, 26 May 2017 05:49:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71063283C7; Fri, 26 May 2017 05:49:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E58C4283BB for ; Fri, 26 May 2017 05:49:54 +0000 (UTC) Received: from localhost ([::1]:35074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dE88H-0006B0-EO for patchwork-qemu-devel@patchwork.kernel.org; Fri, 26 May 2017 01:49:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dE87R-0006As-2T for qemu-devel@nongnu.org; Fri, 26 May 2017 01:49:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dE87N-0000aa-Sh for qemu-devel@nongnu.org; Fri, 26 May 2017 01:49:01 -0400 Received: from mout.gmx.net ([212.227.17.20]:62711) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dE87N-0000a1-I1 for qemu-devel@nongnu.org; Fri, 26 May 2017 01:48:57 -0400 Received: from localhost.localdomain ([185.58.161.191]) by mail.gmx.com (mrgmx101 [212.227.17.174]) with ESMTPSA (Nemesis) id 0MF9WR-1dBAMF2w9r-00GHY7; Fri, 26 May 2017 07:48:40 +0200 From: Kamil Rytarowski To: qemu-devel@nongnu.org Date: Fri, 26 May 2017 07:40:13 +0200 Message-Id: <20170526054013.299-1-n54@gmx.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170513004616.25749-1-n54@gmx.com> References: <20170513004616.25749-1-n54@gmx.com> X-Provags-ID: V03:K0:Zrxrqo34CvrN9y0SaHWWz3aR7hPFjsLWDxbRtFiA72u1apqH42c xPtgOaEw4ztoTWfzA5YHXQUyz1aA0iij0ldquhj4u4CuIOZxCdo1u0ysk9PKrczPCvCU5Sq NcBeBsA1iiMBNf+Uh9GWBFQB4v0e4KwajjFfcVxq6RnmuMGGR1+qw0BziDKXx1H2KL/c/MQ 1qNonktsyWVA3Ux2rWorQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:0uCj+UEyjL4=:iIkto6uD8VH2weEoea84d9 6k6KH/8vNM7TfpR6r7fOUeuL0P+XFCBeD+hPH7UOgZMLVY1WyvZ88Fay31KxYZSqVoh/aWjro tk7yPIX9uBQOZ1d1zmH675fpAg3F9Lauz6Ly2NniaPgyevG9K5LcQvrvF/jdiy0th8fw0zztk 2+f2/8Gaqb2TIx2OVt+oODj1DocctIMrdFKEX9FN4aeVjWI8edsT5QzBOuj45WibddDcLb109 +APhdv6HXezOgUJ9ie4GXHX1SSQB8g1qQ/ggv54HBI59VADI8GUE0/7yuWV7Od0PiAtny/69f DahGPvSlGaCmG50lA5Nffou+LbToHBmrwZIKBE3Xu9OeFL6VGhS5Fe9B/tlbPclDSGynHE/qM +DOAK5Trs3Y1l9IquNSqgPuaBW8+TVO48p/nDWsWORCrsJSM3dIQZoEBJBUaJORsCLwjZp8UL 9hr/Y4ZtKKiEylEyosUrxcmV8i4fC6/8YIQwA/QQV7Y/ysgCMAUBcBGuCB0AFkmJ+XOHURXaW camP4oyz0lV6CcCnaearGqK5xWatJkkl3pgh7LLsR9mFhHUPNE3IC7B33ILgOjH+RxN1Rs2mK guw6he8W/SvlCBpWFwxNzIn7QoO/GJr7ZD079M/ijpuc3TdLXoCWb/hf75c8p1/iF7O/OvBjX kfx+LBR3UkMhq1qIsp0CjsrqUQOeTv9VhoivMUhm0Oelkr9M7lLQD19hEif91SUgKgP2Kw/vq Hf+49CsRxwFzb3IXt3SV1hTqDLhM0kKMGCWnIALLadOHu+8/9Cw0poRPTvw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.20 Subject: [Qemu-devel] [PATCH] ivshmem-server: ivshmem-clean: Install only when eventfd() is available X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Kamil Rytarowski , armbru@redhat.com, f4bug@amsat.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Currently ivshmem requires eventfd() which is Linux specific. Do not and build it unconditionally on every Linux/BSD/Solaris. This patch indirectly fixes build failure on NetBSD, where these tools additionally require -lrl for shm_open(3). In future there should be added support for NetBSD and the linking addressed appropriately. Signed-off-by: Kamil Rytarowski --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 1a5ee4b909..84d8660354 100755 --- a/configure +++ b/configure @@ -4928,6 +4928,8 @@ if test "$want_tools" = "yes" ; then tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools" if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then tools="qemu-nbd\$(EXESUF) $tools" + fi + if [ "$eventfd" != "no" ]; then tools="ivshmem-client\$(EXESUF) ivshmem-server\$(EXESUF) $tools" fi fi