dolphin/ConfigureChecks.cmake
Laurent Montel a15c14e782 Clean up
svn path=/trunk/playground/utils/dolphin/; revision=607924
2006-11-26 10:50:13 +00:00

38 lines
1.5 KiB
CMake

include(CheckIncludeFile)
include(CheckIncludeFiles)
include(CheckSymbolExists)
include(CheckFunctionExists)
include(CheckLibraryExists)
include(CheckPrototypeExists)
include(CheckTypeSize)
# The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
# definitions like _GNU_SOURCE that are needed on each platform.
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
#now check for dlfcn.h using the cmake supplied CHECK_include_FILE() macro
# If definitions like -D_GNU_SOURCE are needed for these checks they
# should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
# defined outside this file. Here we include these definitions in
# CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
# checks below.
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
if (WIN32)
set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
set(CMAKE_REQUIRED_INCLUDES ${KDEWIN32_INCLUDES} )
endif (WIN32)
check_include_files(stdint.h HAVE_STDINT_H)
check_include_files(sys/types.h HAVE_SYS_TYPES_H)
check_include_files(ieeefp.h HAVE_IEEEFP_H)
check_include_files(mntent.h HAVE_MNTENT_H)
check_include_files(sys/loadavg.h HAVE_SYS_LOADAVG_H)
check_include_files(sys/mnttab.h HAVE_SYS_MNTTAB_H)
check_include_files("sys/param.h;sys/mount.h" HAVE_SYS_MOUNT_H)
check_include_files(sys/statfs.h HAVE_SYS_STATFS_H)
check_include_files(sys/statvfs.h HAVE_SYS_STATVFS_H)
check_include_files(sys/ucred.h HAVE_SYS_UCRED_H)
check_include_files(sys/vfs.h HAVE_SYS_VFS_H)
check_function_exists(isinf HAVE_FUNC_ISINF)