changeset 8046:8afc9ddd723e HEAD

Check that libbz2 has correct functions. Old versions had different names.
author Timo Sirainen <tss@iki.fi>
date Mon, 21 Jul 2008 15:59:33 +0300
parents f0ca5110b99d
children 965f8809d30c
files configure.in
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Mon Jul 21 03:21:25 2008 +0300
+++ b/configure.in	Mon Jul 21 15:59:33 2008 +0300
@@ -2236,9 +2236,11 @@
 AM_CONDITIONAL(BUILD_ZLIB, test "$have_zlib" = "yes")
 
 AC_CHECK_HEADER(bzlib.h, [
-  have_bzlib=yes
-  have_zlib_plugin=yes
-  AC_DEFINE(HAVE_BZLIB,, Define if you have zlib library)
+  AC_CHECK_LIB(bz2, BZ2_bzdopen, [
+    have_bzlib=yes
+    have_zlib_plugin=yes
+    AC_DEFINE(HAVE_BZLIB,, Define if you have zlib library)
+  ])
 ])
 AM_CONDITIONAL(BUILD_BZLIB, test "$have_bzlib" = "yes")
 AM_CONDITIONAL(BUILD_ZLIB_PLUGIN, test "$have_zlib_plugin" = "yes")