1
include(CheckIncludeFile)
2
include(CheckIncludeFiles)
3
include(CheckSymbolExists)
4
include(CheckFunctionExists)
5
include(CheckLibraryExists)
6
include(CheckPrototypeExists)
9
# The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
10
# definitions like _GNU_SOURCE that are needed on each platform.
11
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
13
macro_bool_to_01(KDE4_XMMS HAVE_XMMS)
15
#now check for dlfcn.h using the cmake supplied CHECK_include_FILE() macro
16
# If definitions like -D_GNU_SOURCE are needed for these checks they
17
# should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
18
# defined outside this file. Here we include these definitions in
19
# CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
21
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
23
set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
24
set(CMAKE_REQUIRED_INCLUDES ${KDEWIN32_INCLUDES} )
27
check_include_files(stdint.h HAVE_STDINT_H)
28
check_include_files(sys/types.h HAVE_SYS_TYPES_H)
29
check_include_files(ieeefp.h HAVE_IEEEFP_H)
30
check_include_files(mntent.h HAVE_MNTENT_H)
31
check_include_files(sys/loadavg.h HAVE_SYS_LOADAVG_H)
32
check_include_files(sys/mnttab.h HAVE_SYS_MNTTAB_H)
33
check_include_files("sys/param.h;sys/mount.h" HAVE_SYS_MOUNT_H)
34
check_include_files(sys/statfs.h HAVE_SYS_STATFS_H)
35
check_include_files(sys/statvfs.h HAVE_SYS_STATVFS_H)
36
check_include_files(sys/ucred.h HAVE_SYS_UCRED_H)
37
check_include_files(sys/vfs.h HAVE_SYS_VFS_H)
39
check_function_exists(isinf HAVE_FUNC_ISINF)
41
check_type_size("int" SIZEOF_INT)
42
check_type_size("char *" SIZEOF_CHAR_P)
43
check_type_size("long" SIZEOF_LONG)
44
check_type_size("short" SIZEOF_SHORT)
45
check_type_size("size_t" SIZEOF_SIZE_T)
46
check_type_size("unsigned long" SIZEOF_UNSIGNED_LONG)