build-sys: fix type detection
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Feb 2016 18:06:01 +0000 (19:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Feb 2016 14:22:06 +0000 (15:22 +0100)
commitde085700502b372767fa4c83b91a02522e198897
tree6b3fd197eb3b558d075eb6606418cd9abbe56c1c
parent61ecb465b1c803316cb55bae0c2d7cf3c0008589
build-sys: fix type detection

Before this patch existence of char16_t, char32_t, key_serial_t was checked
with AC_CHECK_DECLS() which doesn't actually work for types. Correct this to
use AC_CHECK_TYPES() instead.

Also, while we are at it, change the check for memfd_create() to use
AC_CHECK_DECLS() instead of AC_CHECK_FUNCS(). This is a better choice, since a
couple of syscalls are defined by glibc but not exported in the header files
(pivot_root() for example), and we hence should probably be more picky with
memfd_create() too, which glibc might decide to expose one day, but not
necessarily in the headers too.
configure.ac
src/basic/missing.h