llvm.org GIT mirror llvm / 6598534
Remove dead or useless header checks from cmake and autoconf On Windows, this improves clean cmake configuration time on my workstation from 1m58s to 1m32s, which is pretty significant. There's probably more that can be done here, but this is the low hanging fruit. Eric volunteered to regenerate ./configure for me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187209 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 6 years ago
10 changed file(s) with 12 addition(s) and 252 deletion(s). Raw diff Collapse all Expand all
15301530 AC_LANG_PUSH([C++])
15311531 AC_CHECK_HEADERS([cxxabi.h])
15321532 AC_LANG_POP([C++])
1533 AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h])
1533 AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h link.h])
15341534 AC_CHECK_HEADERS([malloc.h setjmp.h signal.h stdint.h termios.h unistd.h])
1535 AC_CHECK_HEADERS([utime.h windows.h])
1535 AC_CHECK_HEADERS([utime.h])
15361536 AC_CHECK_HEADERS([sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h])
1537 AC_CHECK_HEADERS([sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h])
1537 AC_CHECK_HEADERS([sys/ioctl.h malloc/malloc.h mach/mach.h])
15381538 AC_CHECK_HEADERS([valgrind/valgrind.h])
15391539 AC_CHECK_HEADERS([fenv.h])
15401540 AC_CHECK_DECLS([FE_ALL_EXCEPT, FE_INEXACT], [], [], [[#include ]])
16091609 AC_CHECK_FUNCS([log log2 log10 exp exp2])
16101610 AC_CHECK_FUNCS([getpagesize getrusage getrlimit setrlimit gettimeofday ])
16111611 AC_CHECK_FUNCS([isatty mkdtemp mkstemp ])
1612 AC_CHECK_FUNCS([mktemp posix_spawn pread realpath sbrk setrlimit strdup ])
1612 AC_CHECK_FUNCS([mktemp posix_spawn pread realpath sbrk setrlimit ])
16131613 AC_CHECK_FUNCS([strerror strerror_r setenv arc4random ])
16141614 AC_CHECK_FUNCS([strtoll strtoq sysconf malloc_zone_statistics ])
16151615 AC_CHECK_FUNCS([setjmp longjmp sigsetjmp siglongjmp writev])
7676 AC_REQUIRE([AC_LTDL_SYS_DLOPEN_DEPLIBS])
7777 AC_REQUIRE([AC_LTDL_FUNC_ARGZ])
7878
79 AC_CHECK_HEADERS([assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
80 stdio.h unistd.h])
81 AC_CHECK_HEADERS([dl.h sys/dl.h dld.h mach-o/dyld.h])
82 AC_CHECK_HEADERS([string.h strings.h], [break])
83
84 AC_CHECK_FUNCS([strchr index], [break])
85 AC_CHECK_FUNCS([strrchr rindex], [break])
86 AC_CHECK_FUNCS([memcpy bcopy], [break])
87 AC_CHECK_FUNCS([memmove strcmp])
79 AC_CHECK_HEADERS([errno.h malloc.h memory.h unistd.h])
80 AC_CHECK_HEADERS([mach-o/dyld.h])
81
8882 AC_CHECK_FUNCS([closedir opendir readdir])
8983 ])# AC_LIB_LTDL
9084
384378 [Define if dlsym() requires a leading underscore in symbol names.])
385379 fi
386380 ])# AC_LTDL_DLSYM_USCORE
387
388 # AC_LTDL_FUNC_ARGZ
389 # -----------------
390 AC_DEFUN([AC_LTDL_FUNC_ARGZ],
391 [AC_CHECK_HEADERS([argz.h])
392
393 AC_CHECK_TYPES([error_t],
394 [],
395 [AC_DEFINE([error_t], [int],
396 [Define to a type to use for `error_t' if it is not otherwise available.])],
397 [#if HAVE_ARGZ_H
398 # include
399 #endif])
400
401 AC_CHECK_FUNCS([argz_append argz_create_sep argz_insert argz_next argz_stringify])
402 ])# AC_LTDL_FUNC_ARGZ
3434 endfunction()
3535
3636 # include checks
37 check_include_file(argz.h HAVE_ARGZ_H)
38 check_include_file(assert.h HAVE_ASSERT_H)
39 check_include_file(ctype.h HAVE_CTYPE_H)
4037 check_include_file_cxx(cxxabi.h HAVE_CXXABI_H)
4138 check_include_file(dirent.h HAVE_DIRENT_H)
42 check_include_file(dl.h HAVE_DL_H)
43 check_include_file(dld.h HAVE_DLD_H)
4439 check_include_file(dlfcn.h HAVE_DLFCN_H)
4540 check_include_file(errno.h HAVE_ERRNO_H)
4641 check_include_file(execinfo.h HAVE_EXECINFO_H)
4742 check_include_file(fcntl.h HAVE_FCNTL_H)
4843 check_include_file(inttypes.h HAVE_INTTYPES_H)
4944 check_include_file(limits.h HAVE_LIMITS_H)
50 check_include_file(link.h HAVE_LINK_H)
5145 check_include_file(malloc.h HAVE_MALLOC_H)
5246 check_include_file(malloc/malloc.h HAVE_MALLOC_MALLOC_H)
53 check_include_file(memory.h HAVE_MEMORY_H)
5447 check_include_file(ndir.h HAVE_NDIR_H)
5548 if( NOT PURE_WINDOWS )
5649 check_include_file(pthread.h HAVE_PTHREAD_H)
5750 endif()
5851 check_include_file(sanitizer/msan_interface.h HAVE_SANITIZER_MSAN_INTERFACE_H)
59 check_include_file(setjmp.h HAVE_SETJMP_H)
6052 check_include_file(signal.h HAVE_SIGNAL_H)
6153 check_include_file(stdint.h HAVE_STDINT_H)
62 check_include_file(stdio.h HAVE_STDIO_H)
63 check_include_file(stdlib.h HAVE_STDLIB_H)
64 check_include_file(string.h HAVE_STRING_H)
65 check_include_file(strings.h HAVE_STRINGS_H)
6654 check_include_file(sys/dir.h HAVE_SYS_DIR_H)
67 check_include_file(sys/dl.h HAVE_SYS_DL_H)
6855 check_include_file(sys/ioctl.h HAVE_SYS_IOCTL_H)
6956 check_include_file(sys/mman.h HAVE_SYS_MMAN_H)
7057 check_include_file(sys/ndir.h HAVE_SYS_NDIR_H)
7259 check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H)
7360 check_include_file(sys/stat.h HAVE_SYS_STAT_H)
7461 check_include_file(sys/time.h HAVE_SYS_TIME_H)
75 check_include_file(sys/types.h HAVE_SYS_TYPES_H)
7662 check_include_file(sys/uio.h HAVE_SYS_UIO_H)
7763 check_include_file(sys/wait.h HAVE_SYS_WAIT_H)
7864 check_include_file(termios.h HAVE_TERMIOS_H)
7965 check_include_file(unistd.h HAVE_UNISTD_H)
8066 check_include_file(utime.h HAVE_UTIME_H)
8167 check_include_file(valgrind/valgrind.h HAVE_VALGRIND_VALGRIND_H)
82 check_include_file(windows.h HAVE_WINDOWS_H)
8368 check_include_file(zlib.h HAVE_ZLIB_H)
8469 check_include_file(fenv.h HAVE_FENV_H)
8570 check_symbol_exists(FE_ALL_EXCEPT "fenv.h" HAVE_DECL_FE_ALL_EXCEPT)
120105 check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)
121106 check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT)
122107 check_symbol_exists(isatty unistd.h HAVE_ISATTY)
123 check_symbol_exists(index strings.h HAVE_INDEX)
124108 check_symbol_exists(isinf cmath HAVE_ISINF_IN_CMATH)
125109 check_symbol_exists(isinf math.h HAVE_ISINF_IN_MATH_H)
126110 check_symbol_exists(finite ieeefp.h HAVE_FINITE_IN_IEEEFP_H)
161145 check_symbol_exists(getrlimit "sys/types.h;sys/time.h;sys/resource.h" HAVE_GETRLIMIT)
162146 check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)
163147 check_symbol_exists(pread unistd.h HAVE_PREAD)
164 check_symbol_exists(rindex strings.h HAVE_RINDEX)
165 check_symbol_exists(strchr string.h HAVE_STRCHR)
166 check_symbol_exists(strcmp string.h HAVE_STRCMP)
167 check_symbol_exists(strdup string.h HAVE_STRDUP)
168 check_symbol_exists(strrchr string.h HAVE_STRRCHR)
169148 check_symbol_exists(sbrk unistd.h HAVE_SBRK)
170149 check_symbol_exists(srand48 stdlib.h HAVE_RAND48_SRAND48)
171150 if( HAVE_RAND48_SRAND48 )
182161 check_symbol_exists(strerror string.h HAVE_STRERROR)
183162 check_symbol_exists(strerror_r string.h HAVE_STRERROR_R)
184163 check_symbol_exists(strerror_s string.h HAVE_DECL_STRERROR_S)
185 check_symbol_exists(memcpy string.h HAVE_MEMCPY)
186 check_symbol_exists(memmove string.h HAVE_MEMMOVE)
187164 check_symbol_exists(setenv stdlib.h HAVE_SETENV)
188165 if( PURE_WINDOWS )
189166 check_symbol_exists(_chsize_s io.h HAVE__CHSIZE_S)
207184 check_function_exists(__main HAVE___MAIN)
208185 check_function_exists(__cmpdi2 HAVE___CMPDI2)
209186 endif()
210 if( HAVE_ARGZ_H )
211 check_symbol_exists(argz_append argz.h HAVE_ARGZ_APPEND)
212 check_symbol_exists(argz_create_sep argz.h HAVE_ARGZ_CREATE_SEP)
213 check_symbol_exists(argz_insert argz.h HAVE_ARGZ_INSERT)
214 check_symbol_exists(argz_next argz.h HAVE_ARGZ_NEXT)
215 check_symbol_exists(argz_stringify argz.h HAVE_ARGZ_STRINGIFY)
216 endif()
217187 if( HAVE_DLFCN_H )
218188 if( HAVE_LIBDL )
219189 list(APPEND CMAKE_REQUIRED_LIBRARIES dl)
230200 add_llvm_definitions( -D_GNU_SOURCE )
231201 endif()
232202
233 set(headers "")
234 if (HAVE_SYS_TYPES_H)
235 set(headers ${headers} "sys/types.h")
236 endif()
203 set(headers "sys/types.h")
237204
238205 if (HAVE_INTTYPES_H)
239206 set(headers ${headers} "inttypes.h")
3232 /* Define to 1 if you have the `arc4random' function. */
3333 #cmakedefine HAVE_ARC4RANDOM
3434
35 /* Define to 1 if you have the `argz_append' function. */
36 #cmakedefine HAVE_ARGZ_APPEND ${HAVE_ARGZ_APPEND}
37
38 /* Define to 1 if you have the `argz_create_sep' function. */
39 #cmakedefine HAVE_ARGZ_CREATE_SEP ${HAVE_ARGZ_CREATE_SEP}
40
41 /* Define to 1 if you have the header file. */
42 #cmakedefine HAVE_ARGZ_H ${HAVE_ARGZ_H}
43
44 /* Define to 1 if you have the `argz_insert' function. */
45 #cmakedefine HAVE_ARGZ_INSERT ${HAVE_ARGZ_INSERT}
46
47 /* Define to 1 if you have the `argz_next' function. */
48 #cmakedefine HAVE_ARGZ_NEXT ${HAVE_ARGZ_NEXT}
49
50 /* Define to 1 if you have the `argz_stringify' function. */
51 #cmakedefine HAVE_ARGZ_STRINGIFY ${HAVE_ARGZ_STRINGIFY}
52
53 /* Define to 1 if you have the header file. */
54 #cmakedefine HAVE_ASSERT_H ${HAVE_ASSERT_H}
55
5635 /* Define to 1 if you have the `backtrace' function. */
5736 #cmakedefine HAVE_BACKTRACE ${HAVE_BACKTRACE}
5837
7655
7756 /* can use __crashreporter_info__ */
7857 #undef HAVE_CRASHREPORTER_INFO
79
80 /* Define to 1 if you have the header file. */
81 #cmakedefine HAVE_CTYPE_H ${HAVE_CTYPE_H}
8258
8359 /* Define to 1 if you have the declaration of `strerror_s', and to 0 if you
8460 don't. */
9167 /* Define if you have the GNU dld library. */
9268 #undef HAVE_DLD
9369
94 /* Define to 1 if you have the header file. */
95 #cmakedefine HAVE_DLD_H ${HAVE_DLD_H}
96
9770 /* Define to 1 if you have the `dlerror' function. */
9871 #cmakedefine HAVE_DLERROR ${HAVE_DLERROR}
9972
10376 /* Define if dlopen() is available on this platform. */
10477 #cmakedefine HAVE_DLOPEN ${HAVE_DLOPEN}
10578
106 /* Define to 1 if you have the header file. */
107 #cmakedefine HAVE_DL_H ${HAVE_DL_H}
108
10979 /* Define if the dot program is available */
11080 #cmakedefine HAVE_DOT ${HAVE_DOT}
11181
11888 /* Define to 1 if you have the header file. */
11989 #cmakedefine HAVE_ERRNO_H ${HAVE_ERRNO_H}
12090
121 /* Define to 1 if the system has the type `error_t'. */
122 #cmakedefine HAVE_ERROR_T ${HAVE_ERROR_T}
123
12491 /* Define to 1 if you have the header file. */
12592 #cmakedefine HAVE_EXECINFO_H ${HAVE_EXECINFO_H}
12693
196163 /* Define if the gv program is available */
197164 #cmakedefine HAVE_GV ${HAVE_GV}
198165
199 /* Define to 1 if you have the `index' function. */
200 #cmakedefine HAVE_INDEX ${HAVE_INDEX}
201
202166 /* Define to 1 if the system has the type `int64_t'. */
203167 #cmakedefine HAVE_INT64_T ${HAVE_INT64_T}
204168
246210
247211 /* Define if you can use -Wl,-export-dynamic. */
248212 #define HAVE_LINK_EXPORT_DYNAMIC 1
249
250 /* Define to 1 if you have the header file. */
251 #cmakedefine HAVE_LINK_H ${HAVE_LINK_H}
252213
253214 /* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add
254215 the current directory to the dynamic linker search path. */
275236 /* Define to 1 if you have the `malloc_zone_statistics' function. */
276237 #cmakedefine HAVE_MALLOC_ZONE_STATISTICS ${HAVE_MALLOC_ZONE_STATISTICS}
277238
278 /* Define to 1 if you have the `memcpy' function. */
279 #cmakedefine HAVE_MEMCPY ${HAVE_MEMCPY}
280
281 /* Define to 1 if you have the `memmove' function. */
282 #cmakedefine HAVE_MEMMOVE ${HAVE_MEMMOVE}
283
284 /* Define to 1 if you have the header file. */
285 #cmakedefine HAVE_MEMORY_H ${HAVE_MEMORY_H}
286
287239 /* Define to 1 if you have the `mkdtemp' function. */
288240 #cmakedefine HAVE_MKDTEMP ${HAVE_MKDTEMP}
289241
351303 /* Define to 1 if you have the `realpath' function. */
352304 #undef HAVE_REALPATH
353305
354 /* Define to 1 if you have the `rindex' function. */
355 #cmakedefine HAVE_RINDEX ${HAVE_RINDEX}
356
357306 /* Define to 1 if you have the `rintf' function. */
358307 #undef HAVE_RINTF
359308
372321 /* Define to 1 if you have the `setjmp' function. */
373322 #cmakedefine HAVE_SETJMP ${HAVE_SETJMP}
374323
375 /* Define to 1 if you have the header file. */
376 #cmakedefine HAVE_SETJMP_H ${HAVE_SETJMP_H}
377
378324 /* Define to 1 if you have the `setrlimit' function. */
379325 #cmakedefine HAVE_SETRLIMIT ${HAVE_SETRLIMIT}
380326
393339 /* Define to 1 if you have the header file. */
394340 #cmakedefine HAVE_STDINT_H ${HAVE_STDINT_H}
395341
396 /* Define to 1 if you have the header file. */
397 #cmakedefine HAVE_STDIO_H ${HAVE_STDIO_H}
398
399 /* Define to 1 if you have the header file. */
400 #cmakedefine HAVE_STDLIB_H ${HAVE_STDLIB_H}
401
402342 /* Set to 1 if the std::isinf function is found in */
403343 #undef HAVE_STD_ISINF_IN_CMATH
404344
405345 /* Set to 1 if the std::isnan function is found in */
406346 #undef HAVE_STD_ISNAN_IN_CMATH
407347
408 /* Define to 1 if you have the `strchr' function. */
409 #cmakedefine HAVE_STRCHR ${HAVE_STRCHR}
410
411 /* Define to 1 if you have the `strcmp' function. */
412 #cmakedefine HAVE_STRCMP ${HAVE_STRCMP}
413
414348 /* Define to 1 if you have the `strdup' function. */
415349 #cmakedefine HAVE_STRDUP ${HAVE_STRDUP}
416350
419353
420354 /* Define to 1 if you have the `strerror_r' function. */
421355 #cmakedefine HAVE_STRERROR_R ${HAVE_STRERROR_R}
422
423 /* Define to 1 if you have the header file. */
424 #cmakedefine HAVE_STRINGS_H ${HAVE_STRINGS_H}
425
426 /* Define to 1 if you have the header file. */
427 #cmakedefine HAVE_STRING_H ${HAVE_STRING_H}
428
429 /* Define to 1 if you have the `strrchr' function. */
430 #cmakedefine HAVE_STRRCHR ${HAVE_STRRCHR}
431356
432357 /* Define to 1 if you have the `strtof' function. */
433358 #cmakedefine HAVE_STRTOF ${HAVE_STRTOF}
445370 */
446371 #cmakedefine HAVE_SYS_DIR_H ${HAVE_SYS_DIR_H}
447372
448 /* Define to 1 if you have the header file. */
449 #cmakedefine HAVE_SYS_DL_H ${HAVE_SYS_DL_H}
450
451373 /* Define to 1 if you have the header file. */
452374 #cmakedefine HAVE_SYS_IOCTL_H ${HAVE_SYS_IOCTL_H}
453375
500422 /* Define to 1 if you have the header file. */
501423 #cmakedefine HAVE_VALGRIND_VALGRIND_H ${HAVE_VALGRIND_VALGRIND_H}
502424
503 /* Define to 1 if you have the header file. */
504 #cmakedefine HAVE_WINDOWS_H ${HAVE_WINDOWS_H}
505
506425 /* Define to 1 if you have the `writev' function. */
507426 #cmakedefine HAVE_WRITEV ${HAVE_WRITEV}
508427
3232 /* Define to 1 if you have the `arc4random' function. */
3333 #undef HAVE_ARC4RANDOM
3434
35 /* Define to 1 if you have the `argz_append' function. */
36 #undef HAVE_ARGZ_APPEND
37
38 /* Define to 1 if you have the `argz_create_sep' function. */
39 #undef HAVE_ARGZ_CREATE_SEP
40
41 /* Define to 1 if you have the header file. */
42 #undef HAVE_ARGZ_H
43
44 /* Define to 1 if you have the `argz_insert' function. */
45 #undef HAVE_ARGZ_INSERT
46
47 /* Define to 1 if you have the `argz_next' function. */
48 #undef HAVE_ARGZ_NEXT
49
50 /* Define to 1 if you have the `argz_stringify' function. */
51 #undef HAVE_ARGZ_STRINGIFY
52
53 /* Define to 1 if you have the header file. */
54 #undef HAVE_ASSERT_H
55
5635 /* Define to 1 if you have the `backtrace' function. */
5736 #undef HAVE_BACKTRACE
5837
59 /* Define to 1 if you have the `bcopy' function. */
60 #undef HAVE_BCOPY
61
6238 /* Define to 1 if you have the `ceilf' function. */
6339 #undef HAVE_CEILF
6440
7349
7450 /* can use __crashreporter_info__ */
7551 #undef HAVE_CRASHREPORTER_INFO
76
77 /* Define to 1 if you have the header file. */
78 #undef HAVE_CTYPE_H
7952
8053 /* Define to 1 if you have the header file. */
8154 #undef HAVE_CXXABI_H
9972 /* Define if you have the GNU dld library. */
10073 #undef HAVE_DLD
10174
102 /* Define to 1 if you have the header file. */
103 #undef HAVE_DLD_H
104
10575 /* Define to 1 if you have the `dlerror' function. */
10676 #undef HAVE_DLERROR
10777
11181 /* Define if dlopen() is available on this platform. */
11282 #undef HAVE_DLOPEN
11383
114 /* Define to 1 if you have the header file. */
115 #undef HAVE_DL_H
116
11784 /* Define if the dot program is available */
11885 #undef HAVE_DOT
11986
237204 /* Define to 1 if you have the `z' library (-lz). */
238205 #undef HAVE_LIBZ
239206
240 /* Define to 1 if you have the header file. */
241 #undef HAVE_LIMITS_H
242
243207 /* Define if you can use -Wl,-export-dynamic. */
244208 #undef HAVE_LINK_EXPORT_DYNAMIC
245
246 /* Define to 1 if you have the header file. */
247 #undef HAVE_LINK_H
248209
249210 /* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add
250211 the current directory to the dynamic linker search path. */
280241 /* Define to 1 if you have the `malloc_zone_statistics' function. */
281242 #undef HAVE_MALLOC_ZONE_STATISTICS
282243
283 /* Define to 1 if you have the `memcpy' function. */
284 #undef HAVE_MEMCPY
285
286 /* Define to 1 if you have the `memmove' function. */
287 #undef HAVE_MEMMOVE
288
289 /* Define to 1 if you have the header file. */
290 #undef HAVE_MEMORY_H
291
292244 /* Define to 1 if you have the `mkdtemp' function. */
293245 #undef HAVE_MKDTEMP
294246
377329 /* Define to 1 if you have the `setjmp' function. */
378330 #undef HAVE_SETJMP
379331
380 /* Define to 1 if you have the header file. */
381 #undef HAVE_SETJMP_H
382
383332 /* Define to 1 if you have the `setrlimit' function. */
384333 #undef HAVE_SETRLIMIT
385334
398347 /* Define to 1 if you have the header file. */
399348 #undef HAVE_STDINT_H
400349
401 /* Define to 1 if you have the header file. */
402 #undef HAVE_STDIO_H
403
404 /* Define to 1 if you have the header file. */
405 #undef HAVE_STDLIB_H
406
407350 /* Set to 1 if the std::isinf function is found in */
408351 #undef HAVE_STD_ISINF_IN_CMATH
409352
410353 /* Set to 1 if the std::isnan function is found in */
411354 #undef HAVE_STD_ISNAN_IN_CMATH
412355
413 /* Define to 1 if you have the `strchr' function. */
414 #undef HAVE_STRCHR
415
416 /* Define to 1 if you have the `strcmp' function. */
417 #undef HAVE_STRCMP
418
419 /* Define to 1 if you have the `strdup' function. */
420 #undef HAVE_STRDUP
421
422356 /* Define to 1 if you have the `strerror' function. */
423357 #undef HAVE_STRERROR
424358
425359 /* Define to 1 if you have the `strerror_r' function. */
426360 #undef HAVE_STRERROR_R
427
428 /* Define to 1 if you have the header file. */
429 #undef HAVE_STRINGS_H
430
431 /* Define to 1 if you have the header file. */
432 #undef HAVE_STRING_H
433
434 /* Define to 1 if you have the `strrchr' function. */
435 #undef HAVE_STRRCHR
436361
437362 /* Define to 1 if you have the `strtof' function. */
438363 #undef HAVE_STRTOF
450375 */
451376 #undef HAVE_SYS_DIR_H
452377
453 /* Define to 1 if you have the header file. */
454 #undef HAVE_SYS_DL_H
455
456378 /* Define to 1 if you have the header file. */
457379 #undef HAVE_SYS_IOCTL_H
458380
475397 /* Define to 1 if you have the header file. */
476398 #undef HAVE_SYS_TIME_H
477399
478 /* Define to 1 if you have the header file. */
479 #undef HAVE_SYS_TYPES_H
480
481400 /* Define to 1 if you have the header file. */
482401 #undef HAVE_SYS_UIO_H
483402
504423
505424 /* Define to 1 if you have the header file. */
506425 #undef HAVE_VALGRIND_VALGRIND_H
507
508 /* Define to 1 if you have the header file. */
509 #undef HAVE_WINDOWS_H
510426
511427 /* Define to 1 if you have the `writev' function. */
512428 #undef HAVE_WRITEV
2525 #ifndef SUPPORT_DATATYPES_H
2626 #define SUPPORT_DATATYPES_H
2727
28 #cmakedefine HAVE_SYS_TYPES_H ${HAVE_SYS_TYPES_H}
2928 #cmakedefine HAVE_INTTYPES_H ${HAVE_INTTYPES_H}
3029 #cmakedefine HAVE_STDINT_H ${HAVE_STDINT_H}
3130 #cmakedefine HAVE_UINT64_T ${HAVE_UINT64_T}
5352 #endif
5453
5554 /* Note that includes , if this is a C99 system. */
56 #ifdef HAVE_SYS_TYPES_H
5755 #include
58 #endif
5956
6057 #ifdef HAVE_INTTYPES_H
6158 #include
2525 #ifndef SUPPORT_DATATYPES_H
2626 #define SUPPORT_DATATYPES_H
2727
28 #undef HAVE_SYS_TYPES_H
2928 #undef HAVE_INTTYPES_H
3029 #undef HAVE_STDINT_H
3130 #undef HAVE_UINT64_T
5352 #endif
5453
5554 /* Note that includes , if this is a C99 system. */
56 #ifdef HAVE_SYS_TYPES_H
5755 #include
58 #endif
5956
6057 #ifdef HAVE_INTTYPES_H
6158 #include
1313 #include "llvm/Support/Errno.h"
1414 #include "llvm/Config/config.h" // Get autoconf configuration settings
1515 #include "llvm/Support/raw_ostream.h"
16
17 #if HAVE_STRING_H
1816 #include
1917
2018 #if HAVE_ERRNO_H
7472
7573 } // namespace sys
7674 } // namespace llvm
77
78 #endif // HAVE_STRING_H
1717
1818 #include "Unix.h"
1919 #include "llvm/Support/Process.h"
20 #include
21 #include
2022 #if HAVE_SYS_STAT_H
2123 #include
2224 #endif
4244 # include
4345 # endif
4446 #endif
45 #if HAVE_STDIO_H
46 #include
47 #endif
48 #if HAVE_LIMITS_H
49 #include
50 #endif
5147
5248 #ifdef __APPLE__
5349 #include
2121 #include "llvm/Config/config.h" // Get autoconf configuration settings
2222 #include "llvm/Support/Errno.h"
2323 #include
24 #include
2425 #include
2526 #include
2627 #include
2728 #include
2829 #include
30 #include
2931
3032 #ifdef HAVE_UNISTD_H
3133 #include
3234 #endif
3335
34 #ifdef HAVE_SYS_TYPES_H
35 #include
36 #endif
37
3836 #ifdef HAVE_SYS_PARAM_H
3937 #include
40 #endif
41
42 #ifdef HAVE_ASSERT_H
43 #include
4438 #endif
4539
4640 #ifdef HAVE_SYS_TIME_H