Trying to update the yocto recipe for asterisk to 13.16.0 but cross compiling was broken by the configuration test for eventfd support:
configure.ac:
AC_MSG_CHECKING([if we have usable eventfd support])
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([#include <sys/eventfd.h>],
[return eventfd(0, EFD_NONBLOCK | EFD_SEMAPHORE) == -1;])],
AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_EVENTFD], 1, [Define to 1 if your system supports eventfd and the EFD_NONBLOCK and EFD_SEMAPHORE flags.]),
AC_MSG_RESULT(no)
)
As I understand it, I need to supply a cached result for this test but the generated script seems written to just fail in the cross-compilation case
Any idea on how to bypass/preset this test?
Is the test written so it could use a cached variable?