From patchwork Sat May 26 05:23:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keno Fischer X-Patchwork-Id: 920924 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=juliacomputing.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=juliacomputing-com.20150623.gappssmtp.com header.i=@juliacomputing-com.20150623.gappssmtp.com header.b="pxb/PKJf"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40tBfb493jz9s0y for ; Sat, 26 May 2018 15:35:35 +1000 (AEST) Received: from localhost ([::1]:47849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMRrZ-0005sy-9s for incoming@patchwork.ozlabs.org; Sat, 26 May 2018 01:35:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMRgi-0006Tz-T2 for qemu-devel@nongnu.org; Sat, 26 May 2018 01:24:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMRgf-0004ez-Rr for qemu-devel@nongnu.org; Sat, 26 May 2018 01:24:20 -0400 Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:45077) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMRgf-0004ed-Nk for qemu-devel@nongnu.org; Sat, 26 May 2018 01:24:17 -0400 Received: by mail-qk0-x235.google.com with SMTP id c198-v6so5676628qkg.12 for ; Fri, 25 May 2018 22:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juliacomputing-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=GutYW4LtZqtkmjvXsjRhCXMo0BsB3pQEV0Cu6QiK67g=; b=pxb/PKJfzgVF+gxnhhnkgt+UbcYmpG6T21krAayb/06O48KszuT87D4yjBi1ubV5pY j13uAE9uG1X/J+v8iNSYZZtMVE+yuOJS9nQmJTfj+rD8Lu4RyctCiOeA3r4y3jQB+jfJ 6/JH1Pr5K1pPFwGLW7tXadpaQmEanZFabei1Tj/8fwkX7qxE2bmbzvR2LduaFD/mW0Gc ll4fhO+8lxBvt+/Somo1rPjWTSXjAfdnz4TFafAWiftoPwBA69IAJjY7d6apOwiZybrP HVkkL0KFYnP7KOCBCEyI7Fp3ssUeI9OTKg5ifCl3ovB6BrxUAWbliV35OzfXFvkwwNZi tlvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=GutYW4LtZqtkmjvXsjRhCXMo0BsB3pQEV0Cu6QiK67g=; b=o9B08foHUD9lro21itXcwRUkY7VNwnb4OsbOGj51mpzKZSJ39mofGoY9C2dsJf4jav jPMfhGMO1mmEzRgF55HVOUDrLlG61GUac/IS63evgBaOR42NOrfYEDrwRb7bubC7Mfkk cBB2KCfGnorsrmco2C4KNPT++U5dQ3srS8B2GO/kgI7o9x1i5f2awMec+TmPBlPzG7nB UUgIJrr1e+FDUz7H50TbqNbK2KK4JUwc1bNiX+GAVzvbQZAtEFJrVZ1/gtBCX+z27quN BZBYJWpLBuOzI108jYkAE3TyWHfQzPnKarBia/wCEyoTMROoqyD5Xs7Gc/Hng73+KM+s T3FQ== X-Gm-Message-State: ALKqPwcB3o1Je1wPLJVgoObbx/pyWf7xtywnyNBr9v+a5qP8rru3hnsF wqBTcFWT09vkjlDnulyzwA5944JcYk4= X-Google-Smtp-Source: ADUXVKImWp8BdDIPQM8uwuTRxIPRzSxwGKPy8BHByKFVN4r5p2LjUdJg3+JnDZ9LsMPsnZxwPKcZ/Q== X-Received: by 2002:a37:ddd1:: with SMTP id u78-v6mr4804350qku.363.1527312256808; Fri, 25 May 2018 22:24:16 -0700 (PDT) Received: from localhost.localdomain (96-86-104-61-static.hfc.comcastbusiness.net. [96.86.104.61]) by smtp.gmail.com with ESMTPSA id n128-v6sm17675166qkf.42.2018.05.25.22.24.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 May 2018 22:24:15 -0700 (PDT) From: keno@juliacomputing.com To: qemu-devel@nongnu.org Date: Sat, 26 May 2018 01:23:15 -0400 Message-Id: X-Mailer: git-send-email 2.8.1 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::235 Subject: [Qemu-devel] [PATCH 13/13] 9p: darwin: configure: Allow VirtFS on Darwin 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: Keno Fischer , Keno Fischer , groug@kaod.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Keno Fischer Signed-off-by: Keno Fischer --- Makefile.objs | 1 + configure | 23 +++++++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index c6c3554..a2245c9 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -104,6 +104,7 @@ common-obj-$(CONFIG_WIN32) += os-win32.o common-obj-$(CONFIG_POSIX) += os-posix.o common-obj-$(CONFIG_LINUX) += fsdev/ +common-obj-$(CONFIG_DARWIN) += fsdev/ common-obj-y += migration/ diff --git a/configure b/configure index a8498ab..eb7328c 100755 --- a/configure +++ b/configure @@ -5535,16 +5535,27 @@ if test "$want_tools" = "yes" ; then fi fi if test "$softmmu" = yes ; then - if test "$linux" = yes; then - if test "$virtfs" != no && test "$cap" = yes && test "$attr" = yes ; then + if test "$virtfs" != no; then + if test "$linux" = yes; then + if test "$cap" = yes && test "$attr" = yes ; then + virtfs=yes + tools="$tools fsdev/virtfs-proxy-helper\$(EXESUF)" + else + if test "$virtfs" = yes; then + error_exit "VirtFS requires libcap devel and libattr devel under Linux" + fi + virtfs=no + fi + elif test "$darwin" = yes; then virtfs=yes - tools="$tools fsdev/virtfs-proxy-helper\$(EXESUF)" else if test "$virtfs" = yes; then - error_exit "VirtFS requires libcap devel and libattr devel" + error_exit "VirtFS is supported only on Linux and Darwin" fi virtfs=no fi + fi + if test "$linux" = yes; then if test "$mpath" != no && test "$mpathpersist" = yes ; then mpath=yes else @@ -5555,10 +5566,6 @@ if test "$softmmu" = yes ; then fi tools="$tools scsi/qemu-pr-helper\$(EXESUF)" else - if test "$virtfs" = yes; then - error_exit "VirtFS is supported only on Linux" - fi - virtfs=no if test "$mpath" = yes; then error_exit "Multipath is supported only on Linux" fi