From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 4F9A33858D1E for ; Tue, 3 Jan 2023 13:53:51 +0000 (GMT) Received: by mail-wr1-x432.google.com with SMTP id z16so13026609wrw.1 for ; Tue, 03 Jan 2023 05:53:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rhaee8NY5LAxYQ+4Pfu+uKI2hEXbGQfzQPWbdz6RC/Y=; b=T2vHbGbVn4Epy5wjd2CgP6enwOsx/UrIn88lNxMogUG1ak2oSiYTTIRu2j4zcBo6AL pgvyue2ktHe88AwELKYFZ92vXfKbXs/JjTKnxegReoRr38gXrXukJ5dP2GXru3nqwUzu AJXH9dvlUfvokz4CJ0EcId+3J9UgAaOPBVVb6KQidS+/eKPKx2/HyzWQPFqPjE9VLCMx rDlisU/3MY+UBu2+VQp+302fuqaOne0vHNhjSpiUBxUogBv9QHb0cLpAcAOOzb/t6vIx I6vWMpqbnFLvSd2G9TYNHR/iDWT3xaq0y6qW5ZE3HU61khMsUmWLsZ0lv/PPcugk/anP dPAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rhaee8NY5LAxYQ+4Pfu+uKI2hEXbGQfzQPWbdz6RC/Y=; b=zNDdx8zcXZxcHiA1loCaXd0qjznsesfVM03+SoWWSSsUUvuo8R93ZGgcfN69WT/+K3 tb9QR1o4v7ic6nG/wvqy2q721NrtreViOfQX3SHH3eUqDOUJZbOZ5ztVTJkMkud50tyh LY4F+iA84ZznqvgyuLdJRKd7mekLPzxQEj9R/smgKtuaNTiMV4nyjyUIQDFbKS5xggeX YKpktokQfGW7fqCVtXvUCvpBIQVlKNkJcQLeRA6j9Dkk0V09MbTW2rPG9tCrbQp2quzJ 3UiWaKfASSSP9VouOtcWzI97R1sokhriZ2WHUP+TMMQOMlTGlM9yYh28iyBYVCMpTwty WhJw== X-Gm-Message-State: AFqh2kqbbtINuCMkrC3LiZD0ArY3MwMGU/jJyGubaiK99JNqEggw3PBI euYUd7JZGXIxehtvMP3iFeBQdVnvTTPlbkdc X-Google-Smtp-Source: AMrXdXuHV0JnQ3VtnzmCKI1kMBKvewqxOihdEux0T0JE4oBNfp7p+tDwt2fVAznGzopU5GasDnPS4Q== X-Received: by 2002:adf:dd48:0:b0:242:70f0:9196 with SMTP id u8-20020adfdd48000000b0024270f09196mr29894504wrm.45.1672754029287; Tue, 03 Jan 2023 05:53:49 -0800 (PST) Received: from chigot-Dell.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id m24-20020a056000181800b00296730b5c3esm7911452wrh.102.2023.01.03.05.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 05:53:48 -0800 (PST) From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= To: binutils@sourceware.org Cc: pinskia@gmail.com, nickc@redhat.com, =?UTF-8?q?Cl=C3=A9ment=20Chigot?= Subject: [PATCH] configure: remove dependencies on gmp and mpfr when gdb is disabled Date: Tue, 3 Jan 2023 14:53:30 +0100 Message-Id: <20230103135330.1225218-1-chigot@adacore.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.2 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,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Since 991180627851801f1999d1ebbc0e569a17e47c74, the configure checks about GMP and MPFR for gdb builds have been moved to the toplevel configure. However, it doesn't take into account the --disable-gdb option. Meaning that a build without gdb will require these libraries even if not needed. ChangeLog: * configure.ac: Skip GMP and MPFR errors when --disable-gdb is provided. * configure: Regenerate. --- configure | 4 +++- configure.ac | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 417fc5a970c..0fb8279cb8f 100755 --- a/configure +++ b/configure @@ -8426,11 +8426,13 @@ you obtained GMP, MPFR and/or MPC from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages." "$LINENO" 5 else - as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+. + if test "x$enable_gdb" != xno; then + as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+. Try the --with-gmp and/or --with-mpfr options to specify their locations. If you obtained GMP and/or MPFR from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages." "$LINENO" 5 + fi fi fi fi diff --git a/configure.ac b/configure.ac index 3a1eb0357e5..0ec2fffcb56 100644 --- a/configure.ac +++ b/configure.ac @@ -1814,11 +1814,13 @@ you obtained GMP, MPFR and/or MPC from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages.]) else - AC_MSG_ERROR([Building GDB requires GMP 4.2+, and MPFR 3.1.0+. + if test "x$enable_gdb" != xno; then + AC_MSG_ERROR([Building GDB requires GMP 4.2+, and MPFR 3.1.0+. Try the --with-gmp and/or --with-mpfr options to specify their locations. If you obtained GMP and/or MPFR from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages.]) + fi fi fi fi -- 2.25.1