From: Frantisek Sumsal Date: Thu, 18 May 2023 16:56:15 +0000 (+0200) Subject: build-sys: add --disable-waitpid X-Git-Tag: v2.40-rc1~460^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0d75916b64351133e63e62c6fed7156fe043629;p=thirdparty%2Futil-linux.git build-sys: add --disable-waitpid The new pidfd stuff waitpid uses is not compatible with older kernel headers, but the rest of the util-linux is still perfectly fine, so allow disabling just the waitpid utility to make the builds happy again. --- diff --git a/configure.ac b/configure.ac index 871f9c1981..2066997cb3 100644 --- a/configure.ac +++ b/configure.ac @@ -1847,7 +1847,11 @@ UL_BUILD_INIT([fadvise], [check]) UL_REQUIRES_LINUX([fadvise]) AM_CONDITIONAL([BUILD_FADVISE], [test "x$build_fadvise" = xyes]) -UL_BUILD_INIT([waitpid], [check]) +AC_ARG_ENABLE([waitpid], + AS_HELP_STRING([--disable-waitpid], [do not build waitpid]), + [], [UL_DEFAULT_ENABLE([waitpidd], [check])] +) +UL_BUILD_INIT([waitpid]) UL_REQUIRES_LINUX([waitpid]) AM_CONDITIONAL([BUILD_WAITPID], [test "x$build_waitpid" = xyes])