Signed-off-by: Henrik Lindström <henrik@xxxxxx> --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0ca2ebcf7..838047720 100644 --- a/configure.ac +++ b/configure.ac @@ -1835,7 +1835,11 @@ AC_CHECK_FUNCS([swapon]) AC_CHECK_FUNCS([swapoff]) -UL_BUILD_INIT([lsblk], [check]) +AC_ARG_ENABLE([lsblk], + AS_HELP_STRING([--disable-lsblk], [do not build lsblk]), + [], [UL_DEFAULT_ENABLE([lsblk], [check])] +) +UL_BUILD_INIT([lsblk]) UL_REQUIRES_LINUX([lsblk]) UL_REQUIRES_BUILD([lsblk], [libblkid]) UL_REQUIRES_BUILD([lsblk], [libmount]) -- 2.39.5