kwo pushed a commit to branch master. http://git.enlightenment.org/legacy/imlib2.git/commit/?id=d2ff569608eb113597a35021aa8bab677cb0d7a2
commit d2ff569608eb113597a35021aa8bab677cb0d7a2 Author: Kim Woelders <k...@woelders.dk> Date: Sat Aug 7 18:46:31 2021 +0200 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) --