~blue-shell/blue-shell/folderview-qml

« back to all changes in this revision

Viewing changes to dolphin/ConfigureChecks.cmake

  • Committer: Peter Penz
  • Date: 2006-11-21 06:02:05 UTC
  • Revision ID: git-v1:daace0e789c3ea5e8a89e514abb717c9c360fc7f
commited initial version of Dolphin

svn path=/trunk/playground/utils/dolphin/; revision=606622

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include(CheckIncludeFile)
 
2
include(CheckIncludeFiles)
 
3
include(CheckSymbolExists)
 
4
include(CheckFunctionExists)
 
5
include(CheckLibraryExists)
 
6
include(CheckPrototypeExists)
 
7
include(CheckTypeSize)
 
8
include(MacroBoolTo01)
 
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})
 
12
 
 
13
macro_bool_to_01(KDE4_XMMS HAVE_XMMS)
 
14
 
 
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
 
20
# checks below.
 
21
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
 
22
if (WIN32)
 
23
   set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
 
24
   set(CMAKE_REQUIRED_INCLUDES  ${KDEWIN32_INCLUDES} )
 
25
endif (WIN32)
 
26
 
 
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)
 
38
 
 
39
check_function_exists(isinf      HAVE_FUNC_ISINF)
 
40
 
 
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)
 
47