From patchwork Tue Jan 17 01:12:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Foley X-Patchwork-Id: 44401 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1489002wrn; Mon, 16 Jan 2023 17:12:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXuyLguIEcg5A4O+bRYaooBCwIQTUfqa1SpuAOlFBvCL9Pjy4HFR3cnmZVDfQS1lkAj539WB X-Received: by 2002:a05:6402:448d:b0:498:2f9f:3442 with SMTP id er13-20020a056402448d00b004982f9f3442mr1286797edb.2.1673917957123; Mon, 16 Jan 2023 17:12:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673917957; cv=none; d=google.com; s=arc-20160816; b=hqbCkvcufCQkWIYtOH8KXtR2BqLiB+8acJoXGLepJmxwe8/3ls7wOTkuHTjIAPX1mu 5+eXXY7Bo0uBnCr6devVqM3MSWDkS/dUMa80VkMI3EqycnNoDIn0jKKanBpx2sUV8xGm tjqaR0bLIPxHMqgEtBzZiwmaV4NTOM61I/ZR5ZnqclPCN5ApR4GMthcQyaZe5mArQnAc cpgw6DOZp3ItqoBW8JwbYZ9kB6+zEUb9lPvEtrNx9Yn9rrkuevIg3CAJ4mWw0sMM3KL4 ffQVdS6Gf95vnxqJ3dbl0veBA7YH/795SueNrZGQiqNAGZ6xYmNPl3QlTGyZMv8FwGIz 0aKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=YHKAJb3vuG4c7kQU3M2QONNcvq0oG1dwyEjcurrNLTU=; b=i112KtlPScLs75zi9TL9kH+iiuM6ep8/GIFuCkwn1cJ4bKAMEMs4yXN6qy1eM9ueXn dJHnIAnmU4ISW1LhtboxfC4HeL84ZWiPabSz94znZB0ez3erC8uiKDeSjydIRRPwG5uM hVjXmSu/UYtrE84FI6yeUIXf4y/8A7aMJIcadokBMJZpzZyMhnjIC6Eqjoo9Thh48A7x +3yOdbYkofnKRFhoLIhomuEBDBRA9dJqdFrk3/RRxkEraKrQkln/hmoBDeS8wAK6DQNf yLr+wZr46yXZcIAX3ai71RRSlrQsGgzL4MWuw4hG12gF6aWvDW96/JgHVCKnHnyzfjKs L11g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pefoley.com header.s=google header.b=drv4mHWx; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id hz1-20020a1709072ce100b0084d4761e894si26766981ejc.712.2023.01.16.17.12.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 17:12:37 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@pefoley.com header.s=google header.b=drv4mHWx; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ED62B38582BE for ; Tue, 17 Jan 2023 01:12:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by sourceware.org (Postfix) with ESMTPS id 316E53858D28 for ; Tue, 17 Jan 2023 01:12:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 316E53858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=pefoley.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=pefoley.com Received: by mail-qt1-x82e.google.com with SMTP id x5so2457160qti.3 for ; Mon, 16 Jan 2023 17:12:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pefoley.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YHKAJb3vuG4c7kQU3M2QONNcvq0oG1dwyEjcurrNLTU=; b=drv4mHWxYlSxDT6ffr4tEskHSEq+DQ0oCp+HOzuvpRIs9zofB2Xb40qO2H/1wYpsq6 KamomyrnKAgOIhXhMRnARRDEFj2HRx7JeohDinkZlNTTM4FLfvd4sfjrvW6/RnIARvyh 2ibKti44deKczNMhwpbbqqSLsCfe+uxYAm0zo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YHKAJb3vuG4c7kQU3M2QONNcvq0oG1dwyEjcurrNLTU=; b=x7sgoqCxsTukVIMBXbPLvYusjOUFKrdf2uis/cYOkD9uiHrRUS6JatXlacYSvLFFlT sDqn/OfmCTNxm8fLQvSja0/quUZC9wETpheeXus3Fw744MXL1/WONI5oPNsfvVATovQG ED6Tbmz+IBIH1q5HR34SKXJ44iY6raNMkaHCZbG6kOD3BWYPrDik8xZdeUmObqT5NxcK aOkB2Voty3VE7MR6D7S5C3jfzG8b3e9uFCmbXiAC4ZAZ4FY8g/WgbNVxdBKo3WHwcPTV kK7Kyt4weyR39VWY6FeGVM/ld7hX6zdwtp1NysOEs+2o1NLarE75BN8jojs55CfGBtyT 1QXA== X-Gm-Message-State: AFqh2kq7pPo+cRMmEEo1vYsKKZ/Q73EmAH2jVgU0U7xqfOkctSEeVQ3d TjaaZv8VTw2E8xNqtpbgBmYI3Wi/3BNGKRIKjOMhUA== X-Received: by 2002:a05:622a:4d96:b0:3ac:c2b8:c with SMTP id ff22-20020a05622a4d9600b003acc2b8000cmr1692206qtb.25.1673917928159; Mon, 16 Jan 2023 17:12:08 -0800 (PST) Received: from bronx.pefoley.com ([2600:4040:29fb:d300:887b:7eff:fe74:68b2]) by smtp.gmail.com with ESMTPSA id w22-20020a05620a425600b006cbc00db595sm19327653qko.23.2023.01.16.17.12.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 17:12:07 -0800 (PST) From: Peter Foley To: gcc-patches@gcc.gnu.org Cc: Peter Foley Subject: [PATCH v2] configure: Only create serdep.tmp if needed Date: Mon, 16 Jan 2023 20:12:03 -0500 Message-Id: <20230117011203.3342271-1-pefoley2@pefoley.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230115055842.3965247-1-pefoley2@pefoley.com> References: <20230115055842.3965247-1-pefoley2@pefoley.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755067040127979123?= X-GMAIL-MSGID: =?utf-8?q?1755230195530480922?= There's no reason to create this file if none of the serial configure options are passed. v2: Use test instead of [ to avoid running afoul of autoconf quoting. ChangeLog: * configure: Regenerate. * configure.ac: Only create serdep.tmp if needed Signed-off-by: Peter Foley --- configure | 2 ++ configure.ac | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configure b/configure index 85883099410..0494e2fa2bf 100755 --- a/configure +++ b/configure @@ -9918,7 +9918,9 @@ esac # These force 'configure's to be done one at a time, to avoid problems # with contention over a shared config.cache. rm -f serdep.tmp +if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then echo '# serdep.tmp' > serdep.tmp +fi olditem= test "x${enable_serial_build_configure}" = xyes && for item in ${build_configdirs} ; do diff --git a/configure.ac b/configure.ac index 2b612dce6e9..f5cce5830bc 100644 --- a/configure.ac +++ b/configure.ac @@ -3071,7 +3071,9 @@ esac # These force 'configure's to be done one at a time, to avoid problems # with contention over a shared config.cache. rm -f serdep.tmp +if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then echo '# serdep.tmp' > serdep.tmp +fi olditem= test "x${enable_serial_build_configure}" = xyes && for item in ${build_configdirs} ; do