]>
Commit | Line | Data |
---|---|---|
11a3e7b6 VZ |
1 | include(CheckIncludeFile)\r |
2 | include(CheckIncludeFiles)\r | |
3 | include(CheckFunctionExists)\r | |
4 | include(CheckSymbolExists)\r | |
5 | include(TestBigEndian)\r | |
6 | \r | |
7 | check_include_file("dlfcn.h" HAVE_DLFCN_H)\r | |
8 | check_include_file("fcntl.h" HAVE_FCNTL_H)\r | |
9 | check_include_file("inttypes.h" HAVE_INTTYPES_H)\r | |
10 | check_include_file("memory.h" HAVE_MEMORY_H)\r | |
11 | check_include_file("stdint.h" HAVE_STDINT_H)\r | |
12 | check_include_file("stdlib.h" HAVE_STDLIB_H)\r | |
13 | check_include_file("strings.h" HAVE_STRINGS_H)\r | |
14 | check_include_file("string.h" HAVE_STRING_H)\r | |
15 | check_include_file("sys/stat.h" HAVE_SYS_STAT_H)\r | |
16 | check_include_file("sys/types.h" HAVE_SYS_TYPES_H)\r | |
17 | check_include_file("unistd.h" HAVE_UNISTD_H)\r | |
18 | \r | |
19 | check_function_exists("getpagesize" HAVE_GETPAGESIZE)\r | |
20 | check_function_exists("bcopy" HAVE_BCOPY)\r | |
21 | check_symbol_exists("memmove" "string.h" HAVE_MEMMOVE)\r | |
22 | check_function_exists("mmap" HAVE_MMAP)\r | |
23 | \r | |
24 | #/* Define to 1 if you have the ANSI C header files. */\r | |
25 | check_include_files("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS)\r | |
26 | \r | |
27 | test_big_endian(WORDS_BIGENDIAN)\r | |
28 | #/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */\r | |
29 | if(WORDS_BIGENDIAN)\r | |
30 | set(BYTEORDER 4321)\r | |
31 | else(WORDS_BIGENDIAN)\r | |
32 | set(BYTEORDER 1234)\r | |
33 | endif(WORDS_BIGENDIAN)\r | |
34 | \r | |
35 | if(HAVE_SYS_TYPES_H)\r | |
36 | check_symbol_exists("off_t" "sys/types.h" OFF_T)\r | |
37 | check_symbol_exists("size_t" "sys/types.h" SIZE_T)\r | |
38 | else(HAVE_SYS_TYPES_H)\r | |
39 | set(OFF_T "long")\r | |
40 | set(SIZE_T "unsigned")\r | |
41 | endif(HAVE_SYS_TYPES_H)\r | |
42 | \r | |
43 | configure_file(expat_config.h.cmake expat_config.h)\r | |
44 | add_definitions(-DHAVE_EXPAT_CONFIG_H)\r |