From 4b1b9db70ab42f5589940c8eca85659cd66c96e8 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 30 Oct 2009 10:22:55 -0700 Subject: [PATCH] gdb/ * acinclude.m4: Include ../config/zlib.m4. * configure.ac: Use AM_ZLIB to check for zlib support. * configure: Regenerate. --- gdb/acinclude.m4 | 2 ++ gdb/configure | 21 ++++++++++++++++++++- gdb/configure.ac | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4 index c32e1ea..af4639b 100644 --- a/gdb/acinclude.m4 +++ b/gdb/acinclude.m4 @@ -32,6 +32,8 @@ sinclude([../config/lcmessage.m4]) dnl For AM_LANGINFO_CODESET. sinclude([../config/codeset.m4]) +sinclude([../config/zlib.m4]) + # # Sometimes the native compiler is a bogus stub for gcc or /usr/ucb/cc. This # makes configure think it's cross compiling. If --target wasn't used, then diff --git a/gdb/configure.ac b/gdb/configure.ac index b96caef..d3d4f1f 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -422,7 +422,7 @@ AC_SEARCH_LIBS(gethostbyname, nsl) AC_SEARCH_LIBS(socketpair, socket) # Link in zlib if we can. This allows us to read compressed debug sections. -AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)]) +AM_ZLIB # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c). AC_SEARCH_LIBS(dlgetmodinfo, [dl xpdl]) -- 1.6.0.4