From eb84c8beb16cd1a1251af8e7c5a1bb8afd4f2a21 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Thu, 5 Mar 2015 09:02:03 +0100 Subject: [PATCH 2/2] Keep include file checks in sync with autotools. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85418 --- cmake/ConfigureChecks.cmake | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 697db86..da8c4fc 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -3,23 +3,39 @@ include(CheckSymbolExists) include(CheckStructMember) include(CheckTypeSize) +check_include_file(alloca.h HAVE_ALLOCA_H) +check_include_file(byteswap.h HAVE_BYTESWAP_H) +check_include_file(crt/externs.h HAVE_CRT_EXTERNS_H) check_include_file(dirent.h HAVE_DIRENT_H) # dbus-sysdeps-util.c -check_include_file(io.h HAVE_IO_H) # internal +check_include_file(dlfcn.h HAVE_DLFCN_H) +check_include_file(execinfo.h HAVE_EXECINFO_H) +check_include_file(errno.h HAVE_ERRNO_H) # dbus-sysdeps.c +check_include_file(expat.h HAVE_EXPAT_H) check_include_file(grp.h HAVE_GRP_H) # dbus-sysdeps-util-win.c +check_include_file(inttypes.h HAVE_INTTYPES_H) # dbus-pipe.h +check_include_file(io.h HAVE_IO_H) # internal +check_include_file(locale.h HAVE_LOCALE_H) +check_include_file(memory.h HAVE_MEMORY_H) +check_include_file(signal.h HAVE_SIGNAL_H) +check_include_file(stdint.h HAVE_STDINT_H) # dbus-pipe.h +check_include_file(stdlib.h HAVE_STDLIB_H) +check_include_file(stdio.h HAVE_STDIO_H) # dbus-sysdeps.h +check_include_file(string.h HAVE_STRING_H) +check_include_file(strings.h HAVE_STRINGS_H) +check_include_file(syslog.h HAVE_SYSLOG_H) +check_include_file(sys/inotify.h HAVE_SYS_INOTIFY_H) +check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H) +check_include_file(sys/stat.h HAVE_SYS_STAT_H) +check_include_file(sys/types.h HAVE_SYS_TYPES_H) +check_include_file(sys/uio.h HAVE_SYS_UIO_H) check_include_file(sys/poll.h HAVE_POLL) # dbus-sysdeps.c, dbus-sysdeps-win.c +check_include_file(sys/prctl.h HAVE_SYS_PRCTL_H) +check_include_file(sys/syslimits.h HAVE_SYS_SYSLIMITS_H) # dbus-sysdeps-unix.c check_include_file(sys/time.h HAVE_SYS_TIME_H)# dbus-sysdeps-win.c check_include_file(sys/wait.h HAVE_SYS_WAIT_H)# dbus-sysdeps-win.c check_include_file(time.h HAVE_TIME_H) # dbus-sysdeps-win.c check_include_file(ws2tcpip.h HAVE_WS2TCPIP_H)# dbus-sysdeps-win.c check_include_file(unistd.h HAVE_UNISTD_H) # dbus-sysdeps-util-win.c -check_include_file(stdio.h HAVE_STDIO_H) # dbus-sysdeps.h -check_include_file(sys/syslimits.h HAVE_SYS_SYSLIMITS_H) # dbus-sysdeps-unix.c -check_include_file(errno.h HAVE_ERRNO_H) # dbus-sysdeps.c -check_include_file(signal.h HAVE_SIGNAL_H) -check_include_file(locale.h HAVE_LOCALE_H) -check_include_file(inttypes.h HAVE_INTTYPES_H) # dbus-pipe.h -check_include_file(stdint.h HAVE_STDINT_H) # dbus-pipe.h -check_include_file(sys/prctl.h HAVE_SYS_PRCTL_H) check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE) # dbus-sysdeps.c, dbus-sysdeps-win.c check_symbol_exists(getgrouplist "grp.h" HAVE_GETGROUPLIST) # dbus-sysdeps.c -- 1.8.4.5