[PATCH] Use toplevel configure for GMP and MPFR for gdb
authorAndrew Pinski <apinski@marvell.com>
Wed, 21 Dec 2022 16:58:40 +0000 (16:58 +0000)
committerAndrew Pinski <apinski@marvell.com>
Wed, 21 Dec 2022 17:18:53 +0000 (17:18 +0000)
commit91e0d22025e0bf2af2e364cb7214a05512a0c431
tree25c763d2e1d1203a89355ffab2ee3e08ab69a8c1
parentfdc7469cf597ec11229ddfc3e9c7a06f3d0fba9d
[PATCH] Use toplevel configure for GMP and MPFR for gdb

[Sync'ed from the binutils-gdb repo]
This patch uses the toplevel configure parts for GMP/MPFR for
gdb. The only thing is that gdb now requires MPFR for building.
Before it was a recommended but not required library.
Also this allows building of GMP and MPFR with the toplevel
directory just like how it is done for GCC.
We now error out in the toplevel configure of the version
of GMP and MPFR that is wrong.

OK after GDB 13 branches? Build gdb 3 ways:
with GMP and MPFR in the toplevel (static library used at that point for both)
With only MPFR in the toplevel (GMP distro library used and MPFR built from source)
With neither GMP and MPFR in the toplevel (distro libraries used)

Changes from v1:
* Updated gdb/README and gdb/doc/gdb.texinfo.
* Regenerated using unmodified autoconf-2.69

Thanks,
Andrew Pinski

ChangeLog:
* Makefile.def: Add configure-gdb dependencies
on all-gmp and all-mpfr.
* configure.ac: Split out MPC checking from MPFR.
Require GMP and MPFR if the gdb directory exist.
* Makefile.in: Regenerate.
* configure: Regenerate.
Makefile.def
Makefile.in
configure
configure.ac