aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2008-07-11 02:42:35 +0000
committerHans-Peter Nilsson <hp@axis.com>2008-07-11 02:42:35 +0000
commitecdfd004814e6ae1298b05f5c137970c07f5e6b7 (patch)
tree8e9dedb0f280fc78bc99c48716b7c494eb6425dc /sim/common
parentb5bd96244f3fc0a4824e997b73f8c6fa996526f1 (diff)
downloadgdb-ecdfd004814e6ae1298b05f5c137970c07f5e6b7.zip
gdb-ecdfd004814e6ae1298b05f5c137970c07f5e6b7.tar.gz
gdb-ecdfd004814e6ae1298b05f5c137970c07f5e6b7.tar.bz2
* common.m4: Add test for libz and zlib.h.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/common.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/common.m4 b/sim/common/common.m4
index f587754..215208d 100644
--- a/sim/common/common.m4
+++ b/sim/common/common.m4
@@ -54,6 +54,10 @@ AC_CHECK_FUNCS(getrusage time sigaction __setfpucw)
AC_CHECK_LIB(socket, bind)
AC_CHECK_LIB(nsl, gethostbyname)
+# 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
dnl Standard (and optional) simulator options.