From d2ff569608eb113597a35021aa8bab677cb0d7a2 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Sat, 7 Aug 2021 18:46:31 +0200 Subject: [PATCH] autofoo: Resurrect non-pkg check for bzip2 Apparently upstream (1.0.8) does not provide a .pc file but some distributions add one. --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index fe11533..948bd0d 100644 --- a/configure.ac +++ b/configure.ac @@ -338,6 +338,15 @@ AC_MSG_RESULT($bz2_loader) if test "$bz2_loader" != no ; then PKG_CHECK_MODULES(BZ2, bzip2, [ bz2_ok="yes" ], [ bz2_ok="no" ]) + if test "$bz2_ok" = no ; then + AC_CHECK_LIB(bz2, BZ2_bzRead, bz2_ok=yes, bz2_ok=no) + if test "$bz2_ok" = yes; then + AC_CHECK_HEADER([bzlib.h], , bz2_ok=no) + if test "$bz2_ok" = yes; then + BZ2_LIBS="-lbz2" + fi + fi + fi if test "$bz2_ok" = no ; then if test "$bz2_loader" = yes ; then AC_MSG_ERROR(BZIP2 support was requested but system does not support it)