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: 63259 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 93F1B3858022 for ; Tue, 17 Jan 2023 01:12:26 +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-Google-Smtp-Source: AMrXdXtsSZXp0Fu0T+3C2W7+wY+vlad/J0tguWSzqDQ1bEPbHnSmMcd5QAKv/du74Ar71L2ykE4NSg== 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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" 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