mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 18:10:28 +01:00
Add configure.ac check for static_assert
Part of C11, defined via assert.h. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com> Tested-by: Baruch Siach <baruch@tkos.co.il>
This commit is contained in:
parent
1c276f7f4a
commit
50a86cceb4
1 changed files with 4 additions and 0 deletions
|
|
@ -59,6 +59,10 @@ AC_CHECK_DECL(TFD_CLOEXEC,[],
|
|||
AC_CHECK_DECL(CLOCK_MONOTONIC,[],
|
||||
[AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile libinput")],
|
||||
[[#include <time.h>]])
|
||||
AC_CHECK_DECL(static_assert, [],
|
||||
[AC_DEFINE(static_assert(...), [/* */], [noop static_assert() replacement]),
|
||||
AC_MSG_RESULT([no])],
|
||||
[[#include <assert.h>]])
|
||||
|
||||
PKG_PROG_PKG_CONFIG()
|
||||
PKG_CHECK_MODULES(MTDEV, [mtdev >= 1.1.0])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue