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

Kristian Høgsberg hoegsberg at gmail.com
Tue Jun 4 20:12:37 PDT 2013


On Tue, Jun 04, 2013 at 01:23:01PM +0100, Rob Bradford wrote:
> From: Rob Bradford <rob at linux.intel.com>
> 
> The required flags are relatively new and some older enterprise
> distributions do not feature them.

Looks fine, thanks.

> https://bugs.freedesktop.org/show_bug.cgi?id=63360
> ---
>  configure.ac | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/configure.ac b/configure.ac
> index ba1fcac..8785f9b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -39,6 +39,15 @@ AC_CHECK_FUNC([dlopen], [],
>                AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl"))
>  AC_SUBST(DLOPEN_LIBS)
>  
> +AC_CHECK_DECL(SFD_CLOEXEC,[],
> +	      [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile weston")],
> +	      [[#include <sys/signalfd.h>]])
> +AC_CHECK_DECL(SFD_CLOEXEC,[],

Fixed this one up to check for TFD_CLOEXEC.

Kristian

> +	      [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_CHECK_FUNCS([mkostemp strchrnul])
> -- 
> 1.8.1.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list