From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index d6c0c05..727a875 100644 --- a/configure.ac +++ b/configure.ac @@ -379,6 +379,7 @@ AC_CHECK_FUNCS([ \ setresgid \ setresuid \ sched_setattr \ + sched_setscheduler \ sigqueue \ srandom \ strnchr \ @@ -1808,8 +1809,14 @@ UL_REQUIRES_SYSCALL_CHECK([taskset], [sched_getaffinity]) AM_CONDITIONAL([BUILD_TASKSET], [test "x$build_taskset" = xyes]) + +have_schedsetter=no +AS_IF([test "x$ac_cv_func_sched_setscheduler" = xyes], [have_schedsetter=yes], + [test "x$ac_cv_func_sched_setattr" = xyes], [have_schedsetter=yes]) + UL_BUILD_INIT([chrt], [check]) UL_REQUIRES_BUILD([chrt], [schedutils]) +UL_REQUIRES_HAVE([chrt], [schedsetter], [sched_set functions]) AM_CONDITIONAL([BUILD_CHRT], [test "x$build_chrt" = xyes]) AS_IF([test "x$build_chrt" = xyes], [ -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html