summaryrefslogtreecommitdiffstats
path: root/binutils-2.23/config/zlib.m4
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2013-04-09 11:29:01 -0700
committerBen Cheng <bccheng@google.com>2013-04-09 11:29:01 -0700
commitf226517827d64cc8f9dccb0952731601ac13ef2a (patch)
tree84b1056255b318a87b7a47b2684655660cab66f0 /binutils-2.23/config/zlib.m4
parent30fe22e2cc89991b16ab3853f95c7319574456ce (diff)
downloadtoolchain_binutils-f226517827d64cc8f9dccb0952731601ac13ef2a.tar.gz
toolchain_binutils-f226517827d64cc8f9dccb0952731601ac13ef2a.tar.bz2
toolchain_binutils-f226517827d64cc8f9dccb0952731601ac13ef2a.zip
Initial checkin for binutils 2.23.2 (needed by aarch64)
Change-Id: I7e5f319e9e632cc0ccc8a4ec1051169ed2849ca4
Diffstat (limited to 'binutils-2.23/config/zlib.m4')
-rw-r--r--binutils-2.23/config/zlib.m418
1 files changed, 18 insertions, 0 deletions
diff --git a/binutils-2.23/config/zlib.m4 b/binutils-2.23/config/zlib.m4
new file mode 100644
index 00000000..b0174994
--- /dev/null
+++ b/binutils-2.23/config/zlib.m4
@@ -0,0 +1,18 @@
+dnl A function to check for zlib availability. zlib is used by default
+dnl unless the user configured with --disable-nls.
+
+AC_DEFUN([AM_ZLIB],
+[
+ # See if the user specified whether he wants zlib support or not.
+ AC_ARG_WITH(zlib,
+ [ --with-zlib include zlib support (auto/yes/no) [default=auto]],
+ [], [with_zlib=auto])
+
+ if test "$with_zlib" != "no"; then
+ AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+ if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
+ AC_MSG_ERROR([zlib (libz) library was explicitly requested but not found])
+ fi
+ fi
+])
+