diff options
author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2014-06-05 10:41:27 +0100 |
---|---|---|
committer | Nicolas Hillegeer <nicolas@hillegeer.com> | 2014-07-15 10:43:21 +0200 |
commit | feffc652706c0487be51c6182bba7dcc6f51a895 (patch) | |
tree | 79dea55a068c3c918b610bd8dee1a6c24a5c9e64 /cmake/FindLibIntl.cmake | |
parent | 510db303763739cbeb0500eb41b3551fd60a6cb5 (diff) | |
download | rneovim-feffc652706c0487be51c6182bba7dcc6f51a895.tar.gz rneovim-feffc652706c0487be51c6182bba7dcc6f51a895.tar.bz2 rneovim-feffc652706c0487be51c6182bba7dcc6f51a895.zip |
Add cmake platform checks
- Defined CMake checks for all headers in config.h.in
- Removed headers checks that are not used anymore:
sgtty.h sys/statfs.h libintl.h poll.h
- Added UNIX check
- Add some fatal checks
+ Check for setenv() and fail if it does not exist
since our os layer just assumes it does
+ lstat is required by os_unix.c
+ sys/wait.h is required in UNIX
- Removed entries for functions that are not being used: getcwd,
getrlimit, getwd, nanosleep, sigaltstack, getwd, sigstack, fseeko
- Replaced nearly all defines in config.h.in for functions with
compile time checks
- Add check for symbol FD_CLOEXEC
- Add check for langinfo CODESET
- HAVE_ICONV_H and HAVE_ICONV hold the expected checks but Neovim uses
USE_ICONV define to actually decide whether to enable it
- Removed checks that are no longer needed
+ USEMEMMOVE
+ _FILE_OFFSET_BITS
+ HAVE_ST_BLKSIZE
+ dlfcn.h
Diffstat (limited to 'cmake/FindLibIntl.cmake')
-rw-r--r-- | cmake/FindLibIntl.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/FindLibIntl.cmake b/cmake/FindLibIntl.cmake index ef7e3c10fd..893e4db8d5 100644 --- a/cmake/FindLibIntl.cmake +++ b/cmake/FindLibIntl.cmake @@ -6,6 +6,7 @@ # LibIntl_LIBRARIES - link these to use libintl include(CheckCSourceCompiles) +include(CheckVariableExists) include(LibFindMacros) # Append custom gettext path to CMAKE_PREFIX_PATH @@ -49,6 +50,10 @@ int main(int argc, char** argv) { textdomain(\"foo\"); }" HAVE_WORKING_LIBINTL) +if (HAVE_WORKING_LIBINTL) + check_variable_exists(_nl_msg_cat_cntr HAVE_NL_MSG_CAT_CNTR) +endif() + set(LibIntl_PROCESS_INCLUDES LibIntl_INCLUDE_DIR) set(LibIntl_PROCESS_LIBS LibIntl_LIBRARY) libfind_process(LibIntl) |