From 82b4a5d0ffa52b7b53f03b0b4da41b67f218289f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 10 Jul 2012 10:51:11 +0000 Subject: [PATCH] check for libz; refs #2 --- configure.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 285085a..4bd05b5 100644 --- a/configure.in +++ b/configure.in @@ -191,14 +191,20 @@ if test "$have_stacktrace" = "yes"; then If you are not a developer, you perhaps don't need it...?])]) if test "$have_dynamicstack" != "yes"; then AC_DEFINE([NO_LTDL]) + AC_SEARCH_LIBS(compress, z, + [AC_MSG_RESULT([OK, found libz])], +[AC_MSG_ERROR([zlib not found! +It is required for stack trace! + - install zlib development package + - or configure with option --enable-ltdl + - or configure with option --disable-stacktrace])]) AC_SEARCH_LIBS(bfd_openr, bfd, [AC_MSG_RESULT([OK, found libbfd])], [AC_MSG_ERROR([BFD library from the binutils package not found! It is required for stack trace! - install binutils or binutils-devel - or configure with option --enable-ltdl - - or configure with option --disable-stacktrace])], - -lz -ldl) + - or configure with option --disable-stacktrace])]) fi # bug { ac_includes_default=$old_ac_includes_default