From: Hans-Peter Nilsson Date: Fri, 11 Jul 2008 02:42:35 +0000 (+0000) Subject: * common.m4: Add test for libz and zlib.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecdfd004814e6ae1298b05f5c137970c07f5e6b7;p=binutils-gdb.git * common.m4: Add test for libz and zlib.h. --- diff --git a/sim/common/common.m4 b/sim/common/common.m4 index f5877540f24..215208d8712 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.