Cross Compiling 13.16.0

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?

Regards,
Chris

A fix was already put up and committed[1] for fixing this scenario.

[1] https://gerrit.asterisk.org/#/c/5774/

Thanks,

I’ve added the patch to the bit bake recipe and it builds fine, pending another release.

Is there a way to enable this configuration though if it is supported on the target system?

I’m not aware of any way to enable it, it would likely require further changes.