]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: cleanup BUILD_MOUNTPOINT
authorKarel Zak <kzak@redhat.com>
Thu, 27 Oct 2011 12:31:34 +0000 (14:31 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 3 Nov 2011 11:32:49 +0000 (12:32 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index 276a6ef35cdaac3e75b9add82b4aed545c30c1f2..a8f2166e73000d49a023ec5d6c5b84120b04465f 100644 (file)
@@ -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)