From: Henrik Lindström Date: Sat, 21 Sep 2024 08:23:10 +0000 (+0200) Subject: autotools: allow enabling dmesg with --disable-all-programs X-Git-Tag: v2.40.3~32 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a48fe46565412b2f05c0c6dbbde2d66c639f494c;p=thirdparty%2Futil-linux.git autotools: allow enabling dmesg with --disable-all-programs Signed-off-by: Henrik Lindström (cherry picked from commit 42aa4cd4f6383875d4163620b0590c4ab659b68b) --- diff --git a/configure.ac b/configure.ac index ff35bc402..3d50532f6 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])