From a9127bc15821ed5d783084403540d3870793bb85 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 27 Oct 2011 14:31:34 +0200 Subject: [PATCH] build-sys: cleanup BUILD_MOUNTPOINT Signed-off-by: Karel Zak --- configure.ac | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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) -- 2.47.3