]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure: remove dependencies on gmp and mpfr when gdb is disabled
authorClément Chigot <chigot@adacore.com>
Tue, 3 Jan 2023 13:24:43 +0000 (14:24 +0100)
committerClément Chigot <chigot@adacore.com>
Fri, 6 Jan 2023 08:36:52 +0000 (09:36 +0100)
Since 91e0d22025e0bf2af2e364cb7214a05512a0c431, 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 when --disable-gdb is
provided.
* configure: Regenerate.

configure
configure.ac

index d6716e38e99e3a779851775cc142002c4257af61..858830994104960d205d02abe5152edd6f9eadb1 100755 (executable)
--- a/configure
+++ b/configure
@@ -7913,7 +7913,9 @@ if test -d ${srcdir}/gcc ; then
   require_mpc=yes
 fi
 if test -d ${srcdir}/gdb ; then
-  require_gmp=yes
+  if test "x$enable_gdb" != xno; then
+   require_gmp=yes
+  fi
 fi
 
 gmplibs="-lmpfr -lgmp"
index 737c1a1172be31b552012e29629fbeb85a47c149..2b612dce6e9a1d3ab5eab994d7cf2a09c8a04916 100644 (file)
@@ -1489,7 +1489,9 @@ if test -d ${srcdir}/gcc ; then
   require_mpc=yes
 fi
 if test -d ${srcdir}/gdb ; then
-  require_gmp=yes
+  if test "x$enable_gdb" != xno; then
+   require_gmp=yes
+  fi
 fi
 
 gmplibs="-lmpfr -lgmp"