CMakeLists.txt
changeset 11610 6dea196ecbcb
parent 11606 a54e7ade4382
child 11625 6a676d8b788f
equal deleted inserted replaced
11607:db7ee6a1ba6a 11610:6dea196ecbcb
   651   else()
   651   else()
   652     set(HAVE_LIBC TRUE)
   652     set(HAVE_LIBC TRUE)
   653     check_include_file(sys/types.h HAVE_SYS_TYPES_H)
   653     check_include_file(sys/types.h HAVE_SYS_TYPES_H)
   654     foreach(_HEADER
   654     foreach(_HEADER
   655             stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h limits.h
   655             stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h limits.h
   656             strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h)
   656             strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h libunwind.h)
   657       string(TOUPPER "HAVE_${_HEADER}" _UPPER)
   657       string(TOUPPER "HAVE_${_HEADER}" _UPPER)
   658       string(REPLACE "." "_" _HAVE_H ${_UPPER})
   658       string(REPLACE "." "_" _HAVE_H ${_UPPER})
   659       check_include_file("${_HEADER}" ${_HAVE_H})
   659       check_include_file("${_HEADER}" ${_HAVE_H})
   660     endforeach()
   660     endforeach()
   661 
   661 
   667                              #include <sys/mman.h>
   667                              #include <sys/mman.h>
   668                              int main() { }" HAVE_MPROTECT)
   668                              int main() { }" HAVE_MPROTECT)
   669     foreach(_FN
   669     foreach(_FN
   670             strtod malloc calloc realloc free getenv setenv putenv unsetenv
   670             strtod malloc calloc realloc free getenv setenv putenv unsetenv
   671             qsort abs bcopy memset memcpy memmove memcmp strlen strlcpy strlcat
   671             qsort abs bcopy memset memcpy memmove memcmp strlen strlcpy strlcat
   672             strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
   672             _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
   673             _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull
   673             _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull
   674             atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp
   674             atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp
   675             vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp
   675             vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp
   676             nanosleep sysconf sysctlbyname getauxval poll
   676             nanosleep sysconf sysctlbyname getauxval poll
   677             )
   677             )