… | |
… | |
4414 | $as_echo "$ac_cv_eventfd" >&6; } |
4414 | $as_echo "$ac_cv_eventfd" >&6; } |
4415 | test $ac_cv_eventfd = yes && |
4415 | test $ac_cv_eventfd = yes && |
4416 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
4416 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
4417 | |
4417 | |
4418 | |
4418 | |
|
|
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5 |
|
|
4420 | $as_echo_n "checking for timerfd... " >&6; } |
|
|
4421 | if ${ac_cv_timerfd+:} false; then : |
|
|
4422 | $as_echo_n "(cached) " >&6 |
|
|
4423 | else |
|
|
4424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4425 | /* end confdefs.h. */ |
|
|
4426 | |
|
|
4427 | #include <sys/timerfd.h> |
|
|
4428 | int res; |
|
|
4429 | int main (void) |
|
|
4430 | { |
|
|
4431 | struct itimerspec its; |
|
|
4432 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
4433 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
4434 | res = timerfd_gettime (res, &its); |
|
|
4435 | return 0; |
|
|
4436 | } |
|
|
4437 | |
|
|
4438 | _ACEOF |
|
|
4439 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4440 | ac_cv_timerfd=yes |
|
|
4441 | else |
|
|
4442 | ac_cv_timerfd=no |
|
|
4443 | fi |
|
|
4444 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4445 | conftest$ac_exeext conftest.$ac_ext |
|
|
4446 | fi |
|
|
4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
|
|
4448 | $as_echo "$ac_cv_timerfd" >&6; } |
|
|
4449 | test $ac_cv_timerfd = yes && |
|
|
4450 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
|
|
4451 | |
|
|
4452 | |
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4420 | $as_echo_n "checking for renameat2... " >&6; } |
4454 | $as_echo_n "checking for renameat2... " >&6; } |
4421 | if ${ac_cv_renameat2+:} false; then : |
4455 | if ${ac_cv_renameat2+:} false; then : |
4422 | $as_echo_n "(cached) " >&6 |
4456 | $as_echo_n "(cached) " >&6 |
4423 | else |
4457 | else |