aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-01-11 12:31:54 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-01-11 12:31:54 +0000
commit19823b19baaaa7638e4e69d7e1342dfee0ef9f2f (patch)
tree52965df9b6c8bc8bbece08f12944df8420873260 /cmake
parent927d8aee53d082e746aaeef140dee5e043d08039 (diff)
downloadexternal_llvm-19823b19baaaa7638e4e69d7e1342dfee0ef9f2f.zip
external_llvm-19823b19baaaa7638e4e69d7e1342dfee0ef9f2f.tar.gz
external_llvm-19823b19baaaa7638e4e69d7e1342dfee0ef9f2f.tar.bz2
Add to the CMake build some options and platform tests supported by
the traditional build. Patch by arrowdodger! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index f0e1176..c089488 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -31,6 +31,7 @@ endfunction()
# include checks
check_include_file(argz.h HAVE_ARGZ_H)
check_include_file(assert.h HAVE_ASSERT_H)
+check_include_file(ctype.h HAVE_CTYPE_H)
check_include_file(dirent.h HAVE_DIRENT_H)
check_include_file(dl.h HAVE_DL_H)
check_include_file(dld.h HAVE_DLD_H)
@@ -92,6 +93,7 @@ check_symbol_exists(isnan cmath HAVE_ISNAN_IN_CMATH)
check_symbol_exists(isnan math.h HAVE_ISNAN_IN_MATH_H)
check_symbol_exists(ceilf math.h HAVE_CEILF)
check_symbol_exists(floorf math.h HAVE_FLOORF)
+check_symbol_exists(fmodf math.h HAVE_FMODF)
check_symbol_exists(nearbyintf math.h HAVE_NEARBYINTF)
check_symbol_exists(mallinfo malloc.h HAVE_MALLINFO)
check_symbol_exists(malloc_zone_statistics malloc/malloc.h
@@ -135,6 +137,7 @@ if (HAVE_STDINT_H)
set(headers ${headers} "stdint.h")
endif()
+check_type_exists(int64_t "${headers}" HAVE_INT64_T)
check_type_exists(uint64_t "${headers}" HAVE_UINT64_T)
check_type_exists(u_int64_t "${headers}" HAVE_U_INT64_T)