From bc3e020475e0fc29f265c4f8029f03584bee086e Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 4 Jun 2013 13:27:49 +0100 Subject: [PATCH] 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. https://bugs.freedesktop.org/show_bug.cgi?id=63360 --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index f317a73..7f3a694 100644 --- a/configure.ac +++ b/configure.ac @@ -41,6 +41,17 @@ AC_SUBST(GCC_CFLAGS) AC_CHECK_FUNCS([accept4 mkostemp]) +AC_CHECK_DECL(SFD_CLOEXEC,[], + [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile weston")], + [[#include ]]) +AC_CHECK_DECL(TFD_CLOEXEC,[], + [AC_MSG_ERROR("TFD_CLOEXEC is needed to compile weston")], + [[#include ]]) +AC_CHECK_DECL(CLOCK_MONOTONIC,[], + [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile weston")], + [[#include ]]) +AC_CHECK_HEADERS([execinfo.h]) + AC_ARG_ENABLE([scanner], [AC_HELP_STRING([--disable-scanner], [Disable compilation of wayland-scanner])], -- 2.7.4