diff options
author | Karel Zak | 2016-01-26 14:39:13 +0100 |
---|---|---|
committer | Karel Zak | 2016-01-26 14:39:13 +0100 |
commit | 5a9713293d5f0e20230646fc403ec4a5bf8c1a1f (patch) | |
tree | 3b3c7318dcbe66734c05d683fcaf070abdd7ca52 /libmount/src/Makemodule.am | |
parent | more: remove unnecessary compatibility layer (diff) | |
download | kernel-qcow2-util-linux-5a9713293d5f0e20230646fc403ec4a5bf8c1a1f.tar.gz kernel-qcow2-util-linux-5a9713293d5f0e20230646fc403ec4a5bf8c1a1f.tar.xz kernel-qcow2-util-linux-5a9713293d5f0e20230646fc403ec4a5bf8c1a1f.zip |
libmount: consolidate btrfs stuff, make it more portable
- add --with-btrfs (enabled by default)
- check for linux/btrfs.h
- add "btrfs" to libmount features list (see mount -V)
- #ifdef HAVE_BTRFS_SUPPORT for all btrfs stuff in libmount
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/Makemodule.am')
-rw-r--r-- | libmount/src/Makemodule.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libmount/src/Makemodule.am b/libmount/src/Makemodule.am index 39d42d524..3a89d0de4 100644 --- a/libmount/src/Makemodule.am +++ b/libmount/src/Makemodule.am @@ -27,15 +27,18 @@ libmount_la_SOURCES = \ if LINUX libmount_la_SOURCES += \ - libmount/src/btrfs.c \ - libmount/src/btrfs.h \ libmount/src/context.c \ libmount/src/context_loopdev.c \ libmount/src/context_mount.c \ libmount/src/context_umount.c \ libmount/src/monitor.c + +if HAVE_BTRFS +libmount_la_SOURCES += libmount/src/btrfs.c endif +endif # LINUX + nodist_libmount_la_SOURCES = libmount/src/mountP.h libmount_la_LIBADD = \ |