From d81b5a5217395850df7c5d49890f2177710449db Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 27 Oct 2011 16:02:29 +0200 Subject: build-sys: cleanup BUILD_CRAMFS Signed-off-by: Karel Zak --- configure.ac | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 205b76c55..0afa7b1ac 100644 --- a/configure.ac +++ b/configure.ac @@ -788,17 +788,9 @@ AC_ARG_ENABLE([cramfs], AS_HELP_STRING([--disable-cramfs], [do not build fsck.cramfs, mkfs.cramfs]), [], enable_cramfs=check ) - -if test "x$enable_cramfs" = xno; then - build_cramfs=no -else - build_cramfs=yes - dnl Trick: leave the third parameter empty to get the default action. - AC_CHECK_LIB(z, crc32, [], build_cramfs=no) - case $enable_cramfs:$build_cramfs in - yes:no) AC_MSG_ERROR([cramfs selected but libz not found]);; - esac -fi +build_cramfs=yes +AC_CHECK_LIB(z, crc32, [have_z=yes], [have_z=no]) +UL_REQUIRES_HAVE([cramfs], [z], [z library]) AM_CONDITIONAL(BUILD_CRAMFS, test "x$build_cramfs" = xyes) -- cgit v1.2.3-55-g7522