diff options
-rw-r--r-- | Makefile.in | 7 | ||||
-rw-r--r-- | configure.ac | 8 |
2 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index b87bf82..c4deb51 100644 --- a/Makefile.in +++ b/Makefile.in @@ -8,6 +8,7 @@ RM = @RM@ RMDIR = @RMDIR@ INSTALL = @INSTALL@ DISABLE_DOCUMENTATION = @DISABLE_DOCUMENTATION@ +DISABLE_BTRFSCONVERT = @DISABLE_BTRFSCONVERT@ # Non-static compilation flags CFLAGS = @CFLAGS@ \ @@ -67,7 +68,7 @@ endif MAKEOPTS = --no-print-directory Q=$(Q) progs = mkfs.btrfs btrfs-debug-tree btrfsck \ - btrfs btrfs-map-logical btrfs-image btrfs-zero-log btrfs-convert \ + btrfs btrfs-map-logical btrfs-image btrfs-zero-log \ btrfs-find-root btrfstune btrfs-show-super \ btrfs-corrupt-block btrfs-select-super btrfs-calc-size @@ -75,6 +76,10 @@ progs_extra = btrfs-fragments progs_static = $(foreach p,$(progs),$(p).static) +ifneq ($(DISABLE_BTRFSCONVERT),1) +progs += btrfs-convert +endif + # external libs required by various binaries; for btrfs-foo, # specify btrfs_foo_libs = <list of libs>; see $($(subst...)) rules below btrfs_convert_libs = -lext2fs -lcom_err diff --git a/configure.ac b/configure.ac index 74e62b4..f523ba5 100644 --- a/configure.ac +++ b/configure.ac @@ -85,6 +85,14 @@ if test "x$enable_documentation" = xyes; then AC_PROG_SED fi +AC_ARG_ENABLE([convert], + AS_HELP_STRING([--disable-convert], [do not build btrfs-convert]), + [], [enable_btrfsconvert=yes] +) + +AS_IF([test "x$enable_btrfsconvert" = xyes], [DISABLE_BTRFSCONVERT=0], [DISABLE_BTRFSCONVERT=1]) +AC_SUBST([DISABLE_BTRFSCONVERT]) + dnl Define <NAME>_LIBS= and <NAME>_CFLAGS= by pkg-config dnl |