aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/configure.ac
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2008-07-11 02:39:11 +0000
committerHans-Peter Nilsson <hp@axis.com>2008-07-11 02:39:11 +0000
commit35689115d0866e52f5dcfd43f9d4fb2fc02a72bd (patch)
tree644e7afb581a442d7e701a6f411f770600978f8a /sim/ppc/configure.ac
parent8929c18caae6bdce443788cc05619b5caa7fe32e (diff)
downloadgdb-35689115d0866e52f5dcfd43f9d4fb2fc02a72bd.zip
gdb-35689115d0866e52f5dcfd43f9d4fb2fc02a72bd.tar.gz
gdb-35689115d0866e52f5dcfd43f9d4fb2fc02a72bd.tar.bz2
* configure.ac: Add test for libz and zlib.h.
* Makefile.in (LIBS): Set from @LIBS@. * configure: Regenerate. * config.in: Ditto.
Diffstat (limited to 'sim/ppc/configure.ac')
-rw-r--r--sim/ppc/configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac
index 076f294..730091b 100644
--- a/sim/ppc/configure.ac
+++ b/sim/ppc/configure.ac
@@ -571,6 +571,10 @@ AC_DEFINE_UNQUOTED([REPORT_BUGS_TO], ["$REPORT_BUGS_TO"], [Bug reporting address
AC_CANONICAL_SYSTEM
AC_ARG_PROGRAM
+# BFD conditionally uses zlib, so we must link it in if libbfd does, by
+# using the same condition.
+AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+
. ${srcdir}/../../bfd/configure.host
case ${host} in