]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: cleanup uclampset dependencies
authorKarel Zak <kzak@redhat.com>
Tue, 2 Feb 2021 15:32:51 +0000 (16:32 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Feb 2021 15:54:33 +0000 (16:54 +0100)
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 <kzak@redhat.com>
configure.ac

index 8f66d5ec4157e252f10204034d6df8790cbb691b..62be900aa955495fd321581a538e15fe5b9755bf 100644 (file)
@@ -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]),