[weston PATCH] conf: add K_OFF check in autoconf

Daniel Stone daniel at fooishbar.org
Fri Apr 13 01:59:36 PDT 2012


Hi,

On 13 April 2012 09:53,  <juan.j.zhao at linux.intel.com> wrote:
> @@ -187,6 +187,9 @@ if test "x$GCC" = "xyes"; then
>  fi
>  AC_SUBST(GCC_CFLAGS)
>
> +TEST_INCLUDES="#include <linux/kd.h>"
> +AC_CHECK_DECL(K_OFF,,[AC_MSG_ERROR([Please update your kernel version higher than 2.6.39])],[$TEST_INCLUDES])
> +
>  WAYLAND_SCANNER_RULES(['$(top_srcdir)/protocol'])
>
>  AC_CONFIG_FILES([Makefile

This isn't an option for most users, as well as being a misleading
error message, since their /usr/include/linux/ headers come from a
separate package and are not installed directly by the kernel.  A
better fix would be #ifdef KD_OFF in the code.

Cheers,
Daniel


More information about the wayland-devel mailing list