commit 04d98981bf0f628379cd63f084e695dc76a44889 Author: Joel Brobecker Date: Fri Oct 30 10:17:36 2009 -0700 * common/aclocal.m4: Add include of ../../config/zlib.m4. * common/common.m4: Use AM_ZLIB to check for zlib support. * ppc/configure.ac: Likewise. * arm/configure, avr/configure, common/configure, cr16/configure, cris/configure, d10v/configure, erc32/configure, frv/configure, h8300/configure, iq2000/configure, lm32/configure, m32c/configure, m32r/configure, m68hc11/configure, mcore/configure, microblaze/configure, mips/configure, mn10300/configure, moxie/configure, ppc/configure, sh/configure, sh64/configure, v850/configure: Regenerate. diff --git a/sim/common/aclocal.m4 b/sim/common/aclocal.m4 index 7beaebd..9a6a4c8 100644 --- a/sim/common/aclocal.m4 +++ b/sim/common/aclocal.m4 @@ -20,6 +20,7 @@ # Include global overrides and fixes for Autoconf. m4_include(../../config/override.m4) +sinclude([../../config/zlib.m4]) AC_DEFUN([SIM_AC_COMMON], [ diff --git a/sim/common/common.m4 b/sim/common/common.m4 index 215208d..97a2c61 100644 --- a/sim/common/common.m4 +++ b/sim/common/common.m4 @@ -56,7 +56,7 @@ 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)]) +AM_ZLIB . ${srcdir}/../../bfd/configure.host diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index e8ccfe9..ae26d54 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -668,7 +668,7 @@ 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)]) +AM_ZLIB . ${srcdir}/../../bfd/configure.host