gdb: Make GMP a required dependency for building GDB

This commit modifies gdb's configure script to trigger an error
if we cannot find a usable libgmp.

For the record, making this a requirement was discussed in March 2018:
https://sourceware.org/pipermail/gdb-patches/2018-March/147373.html

gdb/ChangeLog:

        * configure.ac: Generate an error if a usable GMP library
        could not be found.
        * configure: Regenerate.
This commit is contained in:
Joel Brobecker 2020-11-15 03:08:40 -05:00
parent 2c947d9bc2
commit 1b4ac058f7
3 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2020-11-15 Joel Brobecker <brobecker@adacore.com>
* configure.ac: Generate an error if a usable GMP library
could not be found.
* configure: Regenerate.
2020-11-15 Joel Brobecker <brobecker@adacore.com>
* configure.ac: Add support for --with-libgmp-prefix.

3
gdb/configure vendored
View file

@ -10469,6 +10469,9 @@ $as_echo "$LIBGMP" >&6; }
if test "$HAVE_LIBGMP" != yes; then
as_fn_error $? "GMP is missing or unusable" "$LINENO" 5
fi
# Check whether --with-mpfr was given.

View file

@ -687,6 +687,9 @@ fi
AC_LIB_HAVE_LINKFLAGS([gmp], [], [#include <gmp.h>],
[mpz_t n;
mpz_init (n);])
if test "$HAVE_LIBGMP" != yes; then
AC_MSG_ERROR([GMP is missing or unusable])
fi
AC_ARG_WITH(mpfr,
AS_HELP_STRING([--with-mpfr], [include MPFR support (auto/yes/no)]),