[PATCH wayland] build: Add declaration checks to check for required syscall flags

2013-06-04 Thread Rob Bradford
From: Rob Bradford r...@linux.intel.com

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..d4c58e6 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 sys/signalfd.h]])
+AC_CHECK_DECL(SFD_CLOEXEC,[],
+ [AC_MSG_ERROR(TFD_CLOEXEC is needed to compile weston)],
+ [[#include sys/timerfd.h]])
+AC_CHECK_DECL(CLOCK_MONOTONIC,[],
+ [AC_MSG_ERROR(CLOCK_MONOTONIC is needed to compile weston)],
+ [[#include time.h]])
+AC_CHECK_HEADERS([execinfo.h])
+
 AC_ARG_ENABLE([scanner],
   [AC_HELP_STRING([--disable-scanner],
   [Disable compilation of wayland-scanner])],
-- 
1.8.1.4

___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: [PATCH wayland] build: Add declaration checks to check for required syscall flags

2013-06-04 Thread Kristian Høgsberg
On Tue, Jun 04, 2013 at 01:27:49PM +0100, Rob Bradford wrote:
 From: Rob Bradford r...@linux.intel.com
 
 The required flags are relatively new and some older enterprise distributions
 do not feature them.

Applied with TFD_CLOEXEC fixup as the other patch, thanks.

Kristian

 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..d4c58e6 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 sys/signalfd.h]])
 +AC_CHECK_DECL(SFD_CLOEXEC,[],
 +   [AC_MSG_ERROR(TFD_CLOEXEC is needed to compile weston)],
 +   [[#include sys/timerfd.h]])
 +AC_CHECK_DECL(CLOCK_MONOTONIC,[],
 +   [AC_MSG_ERROR(CLOCK_MONOTONIC is needed to compile weston)],
 +   [[#include time.h]])
 +AC_CHECK_HEADERS([execinfo.h])
 +
  AC_ARG_ENABLE([scanner],
[AC_HELP_STRING([--disable-scanner],
[Disable compilation of wayland-scanner])],
 -- 
 1.8.1.4
 
 ___
 wayland-devel mailing list
 wayland-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/wayland-devel
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel