From 82643a9be507bd20df98d38c8248299d1084ac74 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 2 Feb 2021 16:32:51 +0100 Subject: [PATCH] build-sys: cleanup uclampset dependencies chrt requires sched_setattr() or sched_setscheduler(), the both is covered by have_schedsetter variable in ./configure.ac. This variable is useless for uclampset, because it requires sched_setattr(). Let's make it more explicit for uclampset. Signed-off-by: Karel Zak --- configure.ac | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 8f66d5ec41..62be900aa9 100644 --- a/configure.ac +++ b/configure.ac @@ -2196,13 +2196,10 @@ AS_IF([test "x$build_chrt" = xyes], [ UL_ENABLE_ALIAS([uclampset], [schedutils]) UL_BUILD_INIT([uclampset]) -UL_REQUIRES_HAVE([uclampset], [schedsetter], [sched_set functions]) +UL_REQUIRES_SYSCALL_CHECK([uclampset], + [UL_CHECK_SYSCALL([sched_setattr])], [sched_setattr]) AM_CONDITIONAL([BUILD_UCLAMPSET], [test "x$build_uclampset" = xyes]) -AS_IF([test "x$build_uclampset" = xyes], [ - UL_CHECK_SYSCALL([sched_setattr]) -]) - AC_ARG_ENABLE([wall], AS_HELP_STRING([--disable-wall], [do not build wall]), -- 2.47.3