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 #check for libz using the cmake supplied FindZLIB.cmake
34 set(HAVE_BZIP2_SUPPORT 1)
36 set(NEED_BZ2_PREFIX 1)
37 endif(BZIP2_NEED_PREFIX)
39 set(HAVE_BZIP2_SUPPORT 0)
54 #now check for dlfcn.h using the cmake supplied CHECK_include_FILE() macro
55 # If definitions like -D_GNU_SOURCE are needed for these checks they
56 # should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
57 # defined outside this file. Here we include these definitions in
58 # CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
60 set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
62 set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
63 set(CMAKE_REQUIRED_INCLUDES ${KDEWIN32_INCLUDES} )
66 check_include_files(alsa/asoundlib.h HAVE_ALSA_ASOUNDLIB_H)
67 check_include_files(crt_externs.h HAVE_CRT_EXTERNS_H)
68 check_include_files(dlfcn.h HAVE_DLFCN_H)
69 check_include_files(inttypes.h HAVE_INTTYPES_H)
70 check_include_files(memory.h HAVE_MEMORY_H)
71 check_include_files(stdint.h HAVE_STDINT_H)
72 check_include_files(stdlib.h HAVE_STDLIB_H)
73 check_include_files(strings.h HAVE_STRINGS_H)
74 check_include_files(string.h HAVE_STRING_H)
75 check_include_files(sys/asoundlib.h HAVE_SYS_ASOUNDLIB_H)
76 check_include_files(sys/bitypes.h HAVE_SYS_BITYPES_H)
77 check_include_files(sys/stat.h HAVE_SYS_STAT_H)
78 check_include_files(sys/time.h HAVE_SYS_TIME_H)
79 check_include_files(sys/types.h HAVE_SYS_TYPES_H)
80 check_include_files(unistd.h HAVE_UNISTD_H)