]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: build libmount everywhere
authorAndreas Henriksson <andreas@fatal.se>
Thu, 18 Sep 2014 23:36:35 +0000 (01:36 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Oct 2014 08:20:03 +0000 (10:20 +0200)
This enables libmount to build on non-linux, which also
means we can build fsck on non-linux again.
(Since the context part of libmount still needs porting,
building the mount utility has instead been restricted
to only build on Linux.)

This has been build-tested on Debian GNU/kFreeBSD.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
configure.ac

index 943d97206f8a9c18f95c862f121ad73e6abea95c..90d6edc808f79844dc6b4a3d2cb37d57ea4d52d9 100644 (file)
@@ -797,7 +797,6 @@ AC_ARG_ENABLE([libmount],
   [], [UL_DEFAULT_ENABLE([libmount], [check])]
 )
 UL_BUILD_INIT([libmount])
-UL_REQUIRES_LINUX([libmount])
 UL_REQUIRES_BUILD([libmount], [libblkid])
 UL_REQUIRES_HAVE([libmount], [scanf_alloc_modifier], [scanf string alloc modifier])
 AM_CONDITIONAL([BUILD_LIBMOUNT], [test "x$build_libmount" = xyes])
@@ -854,6 +853,7 @@ AC_ARG_ENABLE([mount],
   [], [UL_DEFAULT_ENABLE([mount], [check])]
 )
 UL_BUILD_INIT([mount])
+UL_REQUIRES_LINUX([mount])
 UL_REQUIRES_BUILD([mount], [libmount])
 AM_CONDITIONAL([BUILD_MOUNT], [test "x$build_mount" = xyes])