AC_CHECK_TYPES([struct timespec, clockid_t], [], [], [[#include <time.h>]])
AC_SEARCH_LIBS([clock_gettime], [rt posix4])
AC_CHECK_FUNCS([clock_gettime])
+AC_CHECK_FUNCS([sched_setscheduler sched_get_priority_min sched_get_priority_max nice])
# Check system type
case "$host_os" in
LDFLAGS="${LDFLAGS} -framework CoreFoundation -framework IOKit"
;;
*)
+ build_target=linux
;;
esac
AM_CONDITIONAL([FREEBSD], [test x$build_target = xfreebsd])
AM_CONDITIONAL([MACOS], [test x$build_target = xmacos])
+AM_CONDITIONAL([LINUX], [test x$build_target = xlinux])
AC_ARG_ENABLE(
[plugin-nfacct],