Warning, /frameworks/kio/src/kioworkers/file/ConfigureChecks.cmake is written in an unsupported language. File is not indexed.
0001 include(CheckFunctionExists) 0002 include(CheckLibraryExists) 0003 include(CheckSymbolExists) 0004 include(CheckIncludeFile) 0005 include(CheckIncludeFiles) 0006 include(CheckStructHasMember) 0007 include(CheckCXXSourceCompiles) 0008 0009 check_include_files(sys/time.h HAVE_SYS_TIME_H) 0010 check_include_files(string.h HAVE_STRING_H) 0011 check_include_files(limits.h HAVE_LIMITS_H) 0012 check_include_files(sys/xattr.h HAVE_SYS_XATTR_H) 0013 # On FreeBSD extattr.h doesn't compile without manually including sys/types.h 0014 check_include_files("sys/types.h;sys/extattr.h" HAVE_SYS_EXTATTR_H) 0015 0016 check_function_exists(copy_file_range HAVE_COPY_FILE_RANGE) 0017 0018 check_function_exists(posix_fadvise HAVE_FADVISE) # KIO worker 0019 0020 check_struct_has_member("struct dirent" d_type dirent.h HAVE_DIRENT_D_TYPE LANGUAGE CXX) 0021 0022 check_symbol_exists("__GLIBC__" "stdlib.h" LIBC_IS_GLIBC) 0023 if (LIBC_IS_GLIBC) 0024 check_cxx_source_compiles(" 0025 #include <fcntl.h> 0026 #include <sys/stat.h> 0027 0028 int main() { 0029 struct statx buf; 0030 statx(AT_FDCWD, \"/foo\", AT_EMPTY_PATH, STATX_BASIC_STATS, &buf); 0031 return 0; 0032 } 0033 " HAVE_STATX) 0034 else() 0035 set(HAVE_STATX 0) 0036 endif()