Commit bc3e0204 authored by Rob Bradford's avatar Rob Bradford Committed by Kristian H. Kristensen

build: Add declaration checks to check for required syscall flags

The required flags are relatively new and some older enterprise distributions
do not feature them.
parent b6930889
...@@ -41,6 +41,17 @@ AC_SUBST(GCC_CFLAGS) ...@@ -41,6 +41,17 @@ AC_SUBST(GCC_CFLAGS)
AC_CHECK_FUNCS([accept4 mkostemp]) AC_CHECK_FUNCS([accept4 mkostemp])
[AC_MSG_ERROR("SFD_CLOEXEC is needed to compile weston")],
[[#include <sys/signalfd.h>]])
[AC_MSG_ERROR("TFD_CLOEXEC is needed to compile weston")],
[[#include <sys/timerfd.h>]])
[AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile weston")],
[[#include <time.h>]])
AC_ARG_ENABLE([scanner], AC_ARG_ENABLE([scanner],
[AC_HELP_STRING([--disable-scanner], [AC_HELP_STRING([--disable-scanner],
[Disable compilation of wayland-scanner])], [Disable compilation of wayland-scanner])],
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment