From nobody Sun May 5 22:25:20 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1591088552; cv=none; d=zohomail.com; s=zohoarc; b=Ovx7T+SzK0YmvwROHQJUB/IBW0PKK6+/wnpnk3g3tldh2Fueq1GN08LicgKk02xlSIcbMTmn7r0Oh7z7jQ839Iv3nuBPDISmy5XfRyRc4CXvPYinJ3y1SSDqoyriRoFr/ysh+Xm8mC5d/Q3katdJCMz01FaULLFmUdWo49KJybE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591088552; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=3JNG7ZWFZFUreW9L1zqRVccKLXwRJSgbQ6YgyQQA0f0=; b=CEzwBozky4xMiqWFyOsDK4hDtk1W1KMOV/XeLY8mgGNFol8+aJmAwf2mgvItT/BDnB2DxXpAM2IRwtBP4+ZgKZL/OP681lLnUA4ve6vDpXiBHSgM87DMaavawV/5QmMijGfA0WJw1PkGne1+Wqt4Pxrwq2MqhDszNWlMZkX1FSY= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1591088552224819.7564471838787; Tue, 2 Jun 2020 02:02:32 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jg2np-000379-RF; Tue, 02 Jun 2020 09:01:45 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jg2nn-000374-RB for xen-devel@lists.xenproject.org; Tue, 02 Jun 2020 09:01:43 +0000 Received: from mail-wm1-f65.google.com (unknown [209.85.128.65]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id adb4e34c-a4af-11ea-81bc-bc764e2007e4; Tue, 02 Jun 2020 09:01:43 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id r9so2111949wmh.2 for ; Tue, 02 Jun 2020 02:01:43 -0700 (PDT) Received: from liuwe-devbox-debian-v2.j3c5onc20sse1dnehy4noqpfcg.zx.internal.cloudapp.net ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id b81sm2932688wmc.5.2020.06.02.02.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2020 02:01:40 -0700 (PDT) X-Inumbo-ID: adb4e34c-a4af-11ea-81bc-bc764e2007e4 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:mime-version :content-transfer-encoding; bh=3JNG7ZWFZFUreW9L1zqRVccKLXwRJSgbQ6YgyQQA0f0=; b=IN/IUtOO9onupCSCc+1cnFrmVyBv0CN4GE4Eje04Jr3pmswY0klQk1x0kpoD7odDQj H9aVc9ujHQiE4CoSf8/iDHjh09HVLmn50nYncAvKBjS79xWogYTIp5vWMZhD6VjkEEpZ Ti3O/iqS8RiN5NL0On4vi2J2BEJkJEhLmYTT8bIc25y7UUx5W+EO38esTuaQ/Mi+IF7h nZ3Vxs/4CSs39kjlRjx6Rbst/iKoOhdIhX3Ll4zs2944bKM59J3SwLFth4yX1NzghJMP Q3rFGMl6x7PqZorsbH+OzqU+y0GM/Ls2Acih8/qdubMqRqqJWMt/BZEvx0pLtWMlkqUU HjsA== X-Gm-Message-State: AOAM530scjsBnhEdiMtHKquucNjkUr0MTHJ3qBw1Cz3BQNwmMf28bxmN Q7kthvrdFuYrEGJKfrYe/OcDT6NL X-Google-Smtp-Source: ABdhPJylltjD0CFAqG7U19U+D11dZnub9ISStuvQGfwt9kuUahdwU/AHozVyhY9XGouhvZoq19Pb4w== X-Received: by 2002:a1c:c203:: with SMTP id s3mr3098455wmf.174.1591088502270; Tue, 02 Jun 2020 02:01:42 -0700 (PDT) From: Wei Liu To: Xen Development List Subject: [[PATCH v2 for-4.14]] m4: use test instead of [] Date: Tue, 2 Jun 2020 09:01:38 +0000 Message-Id: <20200602090138.28656-1-wl@xen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: paul@xen.org, Roger Pau Monne , Ian Jackson , Wei Liu , Bertrand Marquis Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Content-Type: text/plain; charset="utf-8" It is reported that [] was removed by autoconf, which caused the following error: ./configure: line 4681: -z: command not found Switch to test. That's what is used throughout our configure scripts. Also put the variable expansion in quotes. Signed-off-by: Wei Liu Reported-by: Bertrand Marquis Fixes: 8a6b1665d987 ("configure: also add EXTRA_PREFIX to {CPP/LD}FLAGS") Signed-off-by: Wei Liu Reviewed-by: Roger Pau Monn=C3=A9 --- v2: Address Ian's comment. Run autogen.sh before committing. Cc: Bertrand Marquis Cc: Roger Pau Monne Cc: paul@xen.org --- m4/set_cflags_ldflags.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/set_cflags_ldflags.m4 b/m4/set_cflags_ldflags.m4 index 08f5c983cc63..23706e256b42 100644 --- a/m4/set_cflags_ldflags.m4 +++ b/m4/set_cflags_ldflags.m4 @@ -15,7 +15,7 @@ for ldflag in $APPEND_LIB do APPEND_LDFLAGS=3D"$APPEND_LDFLAGS -L$ldflag" done -if [ ! -z $EXTRA_PREFIX ]; then +if test ! -z "$EXTRA_PREFIX" ; then CPPFLAGS=3D"$CPPFLAGS -I$EXTRA_PREFIX/include" LDFLAGS=3D"$LDFLAGS -L$EXTRA_PREFIX/lib" fi --=20 2.20.1