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:32:07 +0000 (09:32 +0100)
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 when --disable-gdb is
provided.
* configure: Regenerate.

configure
configure.ac

index 417fc5a970c818659a9e3b267b31c9fae875693e..9cb953a197e2fc2fe851e99b2c0ba22a9ebe7d45 100755 (executable)
--- a/configure
+++ b/configure
@@ -8032,7 +8032,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 3a1eb0357e5c92a8f851d2aea4f38d8156a12a52..e95a9ed116e83f43e741e9a691b15fc194d23d4a 100644 (file)
@@ -1585,7 +1585,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"