summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-01-13 19:17:28 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-01-13 19:17:28 +0000
commit006bfeba06b99ac08a829b12a5f3cb748b810b02 (patch)
treeaf67956e59f43f983bbeef4d075ea314e820cebb /cmake
parent5f3e2be7c941b26ac865fa00c3f314bcd1e6cec8 (diff)
downloadllvm-006bfeba06b99ac08a829b12a5f3cb748b810b02.tar.gz
llvm-006bfeba06b99ac08a829b12a5f3cb748b810b02.tar.bz2
llvm-006bfeba06b99ac08a829b12a5f3cb748b810b02.tar.xz
Add some platform tests.
Patch by arrowdodger! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index e1959faa9d..8027bf4620 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -101,6 +101,11 @@ check_symbol_exists(malloc_zone_statistics malloc/malloc.h
check_symbol_exists(mkdtemp "stdlib.h;unistd.h" HAVE_MKDTEMP)
check_symbol_exists(mkstemp "stdlib.h;unistd.h" HAVE_MKSTEMP)
check_symbol_exists(mktemp "stdlib.h;unistd.h" HAVE_MKTEMP)
+check_symbol_exists(closedir "sys/types.h;dirent.h" HAVE_CLOSEDIR)
+check_symbol_exists(opendir "sys/types.h;dirent.h" HAVE_OPENDIR)
+check_symbol_exists(getcwd unistd.h HAVE_GETCWD)
+check_symbol_exists(gettimeofday sys/time.h HAVE_GETTIMEOFDAY)
+check_symbol_exists(getrlimit "sys/types.h;sys/time.h;sys/resource.h" HAVE_GETRLIMIT)
if( NOT LLVM_ON_WIN32 )
check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK)
endif()
@@ -109,6 +114,8 @@ check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL)
check_symbol_exists(strerror string.h HAVE_STRERROR)
check_symbol_exists(strerror_r string.h HAVE_STRERROR_R)
check_symbol_exists(strerror_s string.h HAVE_STRERROR_S)
+check_symbol_exists(memcpy string.h HAVE_MEMCPY)
+check_symbol_exists(memmove string.h HAVE_MEMMOVE)
check_symbol_exists(setenv stdlib.h HAVE_SETENV)
if ( LLVM_ON_WIN32 )
check_symbol_exists(_chsize_s io.h HAVE__CHSIZE_S)