--- a/configure.ac 2013-01-13 17:38:32.179486885 +0400 +++ b/configure.ac 2013-01-13 17:40:30.749484293 +0400 @@ -247,6 +247,21 @@ , [AC_MSG_ERROR([Required libfbsplashrender was not found])] ) + PKG_CHECK_MODULES( + [FREETYPE2], + [freetype2], + , + [AC_MSG_ERROR([freetype was not found.])] + ) + if test -z "${BZ2_LIBS}"; then + AC_ARG_VAR([BZ2_LIBS], [linker flags for bz2]) + AC_CHECK_LIB( + [bz2], + [BZ2_bzDecompress], + [BZ2_LIBS="-lbz2"], + [AC_MSG_ERROR([Required bz2 was not found.])] + ) + fi fi if test "${enable_threads}" = "yes"; then --- a/Makefile.am 2013-01-13 17:38:32.179486885 +0400 +++ b/Makefile.am 2013-01-13 17:38:56.319486358 +0400 @@ -129,7 +129,8 @@ resume.c resume_LDADD=\ libsuspend-common.a \ - $(common_s2disk_libs) + $(common_s2disk_libs) \ + ${BZ2_LIBS} if ENABLE_RESUME_STATIC resume_LDFLAGS=\ $(AM_LDFLAGS) \ @@ -171,7 +172,8 @@ fbsplash_funcs.c \ fbsplash-test.c fbsplash_test_LDADD=\ - $(FBSPLASH_LIBS) + $(FBSPLASH_LIBS) \ + $(BZ2_LIBS) whitelist.c: whitelist.csv $(PERL) wlcsv2c.pl whitelist.csv whitelist.c