From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7854) id D8C4A3858C50; Thu, 9 Feb 2023 10:04:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8C4A3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675937050; bh=qQ2JPvvV44b8qo3ooM2EPUiLfl1n+8MjzWojXyTAcao=; h=From:To:Subject:Date:From; b=bsDZAO8azg1672UKm55gNp/++XS6zatNyoOxyiEwfSfo/GCNZ33aAAH1iX0BQuYNT dZMWSm7+gHLewsvsGoo9btzEltsyiVK3Pd84a07/Ww27ZvjlWk7Yb/JZNXRcfBYpeP xA2hz+vSG3f2DZ8Hl2R7EsBuX//iR9emfRQNsgZ4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Cl?ment Chigot To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb/binutils-2_40-branch] configure: remove dependencies on gmp and mpfr when gdb is disabled X-Act-Checkin: binutils-gdb X-Git-Author: =?utf-8?q?Cl=C3=A9ment_Chigot?= X-Git-Refname: refs/heads/binutils-2_40-branch X-Git-Oldrev: 717aae8984a03b35460b0e22f3233dea7d0d4611 X-Git-Newrev: 17294931e3e361bee6810b1a39493e214b38c5e5 Message-Id: <20230209100410.D8C4A3858C50@sourceware.org> Date: Thu, 9 Feb 2023 10:04:10 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D17294931e3e3= 61bee6810b1a39493e214b38c5e5 commit 17294931e3e361bee6810b1a39493e214b38c5e5 Author: Cl=C3=A9ment Chigot Date: Tue Jan 3 14:24:43 2023 +0100 configure: remove dependencies on gmp and mpfr when gdb is disabled =20 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. =20 ChangeLog: =20 * configure.ac: Skip GMP and MPFR when --disable-gdb is provided. * configure: Regenerate. =20 (cherry picked from commit 5fb0e308577143ceb313fde5538dc9ecb038f29f) Diff: --- configure | 4 +++- configure.ac | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 417fc5a970c..9cb953a197e 100755 --- a/configure +++ b/configure @@ -8032,7 +8032,9 @@ if test -d ${srcdir}/gcc ; then require_mpc=3Dyes fi if test -d ${srcdir}/gdb ; then - require_gmp=3Dyes + if test "x$enable_gdb" !=3D xno; then + require_gmp=3Dyes + fi fi =20 gmplibs=3D"-lmpfr -lgmp" diff --git a/configure.ac b/configure.ac index 3a1eb0357e5..e95a9ed116e 100644 --- a/configure.ac +++ b/configure.ac @@ -1585,7 +1585,9 @@ if test -d ${srcdir}/gcc ; then require_mpc=3Dyes fi if test -d ${srcdir}/gdb ; then - require_gmp=3Dyes + if test "x$enable_gdb" !=3D xno; then + require_gmp=3Dyes + fi fi =20 gmplibs=3D"-lmpfr -lgmp"