AC_DEFUN([KIOBZIP2_CHECK_BZIP2],
[
AC_REQUIRE([AC_FIND_BZIP2])

AM_CONDITIONAL(include_bzip2, test -n "$BZIP2DIR")
if test -n "$BZIP2DIR"; then
  AC_DEFINE(HAVE_BZIP2_SUPPORT, 1, [Defines if bzip2 is compiled])
fi
])

KIOBZIP2_CHECK_BZIP2
