aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2020-11-15 03:07:45 -0500
committerJoel Brobecker <brobecker@adacore.com>2020-11-15 03:07:45 -0500
commit2c947d9bc2ff3b84f1676b83577fe1bba05b4a5f (patch)
treed6b6b0bb010031ea838bf432a4a584896eaab205 /gdb/configure.ac
parent0eb994e572a58d2f9421429e2610cdd36dea78c0 (diff)
downloadgdb-2c947d9bc2ff3b84f1676b83577fe1bba05b4a5f.zip
gdb-2c947d9bc2ff3b84f1676b83577fe1bba05b4a5f.tar.gz
gdb-2c947d9bc2ff3b84f1676b83577fe1bba05b4a5f.tar.bz2
gdb/configure: Add --with-libgmp-prefix option
This patch allows a user to tell gdb's configure script where his GMP library is installed. gdb/ChangeLog: * configure.ac: Add support for --with-libgmp-prefix. * Makefile.in (LIBGMP): New variable. (CLIBS): Include $(LIBGMP). * configure, config.in: Regenerate
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 1b9548e..0264a4f 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -683,6 +683,11 @@ else
fi
fi
+# Verify that we have a usable GMP library.
+AC_LIB_HAVE_LINKFLAGS([gmp], [], [#include <gmp.h>],
+ [mpz_t n;
+ mpz_init (n);])
+
AC_ARG_WITH(mpfr,
AS_HELP_STRING([--with-mpfr], [include MPFR support (auto/yes/no)]),
[], [with_mpfr=auto])