Building gdb requires various tools and packages to be available. Other packages will be used only if they are found.
make
will not work.
Expat is used for:
--with-guile
option to request Guile, and pass either the Guile
version number or the file name of the relevant pkg-config
program to choose a particular version of Guile.
iconv
implementation. If you are
on a GNU system, then this is provided by the GNU C Library. Some
other systems also provide a working iconv
.
If gdb is using the iconv
program which is installed
in a non-standard place, you will need to tell gdb where to
find it. This is done with --with-iconv-bin which specifies
the directory that contains the iconv
program. This program is
run in order to make a list of the available character sets.
On systems without iconv
, you can install GNU Libiconv. If
Libiconv is installed in a standard place, gdb will
automatically use it if it is needed. If you have previously
installed Libiconv in a non-standard place, you can use the
--with-libiconv-prefix option to configure.
gdb's top-level configure and Makefile will
arrange to build Libiconv if a directory named libiconv appears
in the top-most source directory. If Libiconv is built this way, and
if the operating system does not provide a suitable iconv
implementation, then the just-built library will automatically be used
by gdb. One easy way to set this up is to download GNU
Libiconv, unpack it inside the top-level directory of the gdb
source tree, and then rename the directory holding the Libiconv source
code to ‘libiconv’.
GNU MPFR is used to emulate target floating-point arithmetic during
expression evaluation when the target uses different floating-point
formats than the host. If GNU MPFR it is not available, gdb
will fall back to using host floating-point arithmetic.
--with-python
option to request Python, and pass either the
file name of the relevant python
executable, or the name of the
directory in which Python is installed, to choose a particular
installation of Python.
The ‘zlib’ library is likely included with your operating system distribution; if it is not, you can get the latest version from http://zlib.net.