aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index 947f79d..0d1f5c9 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -198,6 +198,10 @@ AC_CHECK_DECLS(strstr)
AC_CHECK_DECLS(snprintf)
AC_CHECK_DECLS(vsnprintf)
+# Link in zlib if we can. This allows us to read compressed debug sections.
+# This is used only by compress.c.
+AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+
# If we are configured native, pick a core file support file.
COREFILE=
COREFLAG=