From 42aa4cd4f6383875d4163620b0590c4ab659b68b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Henrik=20Lindstr=C3=B6m?= Date: Sat, 21 Sep 2024 10:23:10 +0200 Subject: [PATCH] autotools: allow enabling dmesg with --disable-all-programs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Henrik Lindström --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3f26eb8cd..96519e088 100644 --- a/configure.ac +++ b/configure.ac @@ -2167,7 +2167,11 @@ UL_BUILD_INIT([readprofile], [check]) UL_REQUIRES_LINUX([readprofile]) AM_CONDITIONAL([BUILD_READPROFILE], [test "x$build_readprofile" = xyes]) -UL_BUILD_INIT([dmesg], [check]) +AC_ARG_ENABLE([dmesg], + AS_HELP_STRING([--disable-dmesg], [do not build dmesg]), + [], [UL_DEFAULT_ENABLE([dmesg], [check])] +) +UL_BUILD_INIT([dmesg]) UL_REQUIRES_LINUX([dmesg]) AM_CONDITIONAL([BUILD_DMESG], [test "x$build_dmesg" = xyes]) -- 2.47.3