summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-26 15:25:17 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-26 15:53:14 -0200
commit4ed139a49cedf3f6e85d6f631a56bb7e4e416cc6 (patch)
tree1b7e96c8f719b8a9bf01701803d2260961953cb3 /cmake
parent995b1e480c84fd356fb89039dbc67db599a423cc (diff)
downloadefl-4ed139a49cedf3f6e85d6f631a56bb7e4e416cc6.tar.gz
cmake: more headers and function checks.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/config/common.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/config/common.cmake b/cmake/config/common.cmake
index d5e088d10d..2e31bf4dd9 100644
--- a/cmake/config/common.cmake
+++ b/cmake/config/common.cmake
@@ -34,6 +34,7 @@ EFL_OPTION(ENABLE_VALGRIND "Enable valgrind support" "${SUGGEST_VALGRIND}" DEPEN
# BEGIN: HEADER, TYPE and FUNCTION CHECKS
# KEEP EACH BLOCK SORTED
+HEADER_CHECK(alloca.h)
HEADER_CHECK(asm/hwcap.h)
HEADER_CHECK(dirent.h)
HEADER_CHECK(execinfo.h)
@@ -44,29 +45,39 @@ HEADER_CHECK(sys/auxv.h)
HEADER_CHECK(sys/mman.h)
HEADER_CHECK(sys/types.h)
+FUNC_CHECK(alloca INCLUDE_FILES alloca.h)
FUNC_CHECK(backtrace INCLUDE_FILES execinfo.h)
+FUNC_CHECK(backtrace_symbols INCLUDE_FILES execinfo.h)
FUNC_CHECK(clock_gettime INCLUDE_FILES time.h)
FUNC_CHECK(dirfd INCLUDE_FILES dirent.h sys/types.h)
FUNC_CHECK(dladdr INCLUDE_FILES dlfcn.h LIBRARIES dl DEFINITIONS "-D_GNU_SOURCE=1")
FUNC_CHECK(dlopen INCLUDE_FILES dlfcn.h LIBRARIES dl)
+FUNC_CHECK(dlsym INCLUDE_FILES dlfcn.h LIBRARIES dl)
FUNC_CHECK(fchmod INCLUDE_FILES sys/stat.h)
FUNC_CHECK(fcntl INCLUDE_FILES fcntl.h)
+FUNC_CHECK(fork INCLUDE_FILES unistd.h)
FUNC_CHECK(fpathconf INCLUDE_FILES unistd.h)
FUNC_CHECK(fstatat NAME HAVE_ATFILE_SOURCE INCLUDE_FILES sys/stat.h)
FUNC_CHECK(geteuid INCLUDE_FILES unistd.h)
FUNC_CHECK(getpagesize INCLUDE_FILES unistd.h)
+FUNC_CHECK(getpwent INCLUDE_FILES sys/types.h pwd.h)
FUNC_CHECK(getuid INCLUDE_FILES unistd.h)
FUNC_CHECK(getxattr INCLUDE_FILES sys/types.h sys/xattr.h)
FUNC_CHECK(iconv INCLUDE_FILES iconv.h)
FUNC_CHECK(listxattr INCLUDE_FILES sys/types.h sys/xattr.h)
+FUNC_CHECK(lround INCLUDE_FILES math.h LIBRARIES m)
FUNC_CHECK(mallinfo INCLUDE_FILES malloc.h)
FUNC_CHECK(malloc_info INCLUDE_FILES malloc.h)
+FUNC_CHECK(malloc_usable_size INCLUDE_FILES malloc.h)
+FUNC_CHECK(mkdirat INCLUDE_FILES sys/stat.h)
FUNC_CHECK(mmap INCLUDE_FILES sys/mman.h)
FUNC_CHECK(mtrace INCLUDE_FILES mcheck.h)
FUNC_CHECK(prctl INCLUDE_FILES sys/prctl.h)
+FUNC_CHECK(realpath INCLUDE_FILES stdlib.h)
FUNC_CHECK(sched_getcpu INCLUDE_FILES sched.h DEFINITIONS "-D_GNU_SOURCE=1")
FUNC_CHECK(setxattr INCLUDE_FILES sys/types.h sys/xattr.h)
FUNC_CHECK(shm_open INCLUDE_FILES sys/mman.h sys/stat.h fcntl.h LIBRARIES rt)
+FUNC_CHECK(siglongjmp INCLUDE_FILES setjmp.h)
FUNC_CHECK(splice INCLUDE_FILES fcntl.h DEFINITIONS "-D_GNU_SOURCE=1")
FUNC_CHECK(strerror_r INCLUDE_FILES string.h)
FUNC_CHECK(strlcpy INCLUDE_FILES bsd/string.h)