From 5912faddb200cda344c8776b898b31f07a73352a Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 24 Nov 2009 22:58:08 +0000 Subject: * 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. --- sim/moxie/configure | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) (limited to 'sim/moxie') diff --git a/sim/moxie/configure b/sim/moxie/configure index d360d1b..490e998 100644 --- a/sim/moxie/configure +++ b/sim/moxie/configure @@ -705,6 +705,7 @@ SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking +with_zlib enable_maintainer_mode enable_sim_bswap enable_sim_cflags @@ -1363,6 +1364,7 @@ Optional Features: Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-zlib include zlib support (auto/yes/no) --with-pkgversion=PKG Use PKG in the version string in place of "GDB" --with-bugurl=URL Direct users to URL to report a bug @@ -2348,6 +2350,17 @@ fi + + + + + + + + + + + sim_inline="-DDEFAULT_INLINE=0" @@ -3001,12 +3014,10 @@ done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include + int main () { -FILE *f = fopen ("conftest.out", "w"); - return ferror (f) || fclose (f) != 0; ; return 0; @@ -4275,7 +4286,19 @@ fi # BFD conditionally uses zlib, so we must link it in if libbfd does, by # using the same condition. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 + + # See if the user specified whether he wants zlib support or not. + +# Check whether --with-zlib was given. +if test "${with_zlib+set}" = set; then : + withval=$with_zlib; +else + with_zlib=auto +fi + + + if test "$with_zlib" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 $as_echo_n "checking for library containing zlibVersion... " >&6; } if test "${ac_cv_search_zlibVersion+set}" = set; then : $as_echo_n "(cached) " >&6 @@ -4342,6 +4365,11 @@ done fi + if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then + as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5 + fi + fi + . ${srcdir}/../../bfd/configure.host -- cgit v1.1