From: Karel Zak Date: Thu, 27 Oct 2011 12:31:34 +0000 (+0200) Subject: build-sys: cleanup BUILD_MOUNTPOINT X-Git-Tag: v2.21-rc1~254 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9127bc15821ed5d783084403540d3870793bb85;p=thirdparty%2Futil-linux.git build-sys: cleanup BUILD_MOUNTPOINT Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 276a6ef35c..a8f2166e73 100644 --- a/configure.ac +++ b/configure.ac @@ -473,21 +473,8 @@ AC_ARG_ENABLE([mountpoint], AS_HELP_STRING([--disable-mountpoint], [do not build mountpoint]), [], enable_mountpoint=check ) - build_mountpoint=yes -if test "x$enable_mountpoint" = xcheck; then - if test "x$build_libmount" = xno; then - AC_MSG_WARN([libmount disabled; do not build mountpoint]) - build_mountpoint=no - fi -elif test "x$enable_mountpoint" = xno; then - build_mountpoint=no -fi - -case "$build_libmount:$build_mountpoint" in -no:yes) - AC_MSG_ERROR([cannot enable mountpoint when libmount is disabled]) ;; -esac +UL_REQUIRES_BUILD([mountpoint], [libmount]) AM_CONDITIONAL(BUILD_MOUNTPOINT, test "x$build_mountpoint" = xyes)