[CMake] Autotools replacement functions?
Eric Noulard
eric.noulard at gmail.com
Wed Oct 15 03:36:14 EDT 2008
2008/10/15 Andrew Fenn <andrewfenn at gmail.com>:
> Does cmake have replacement functions for the following?
>
> AC_CHECK_MEMBER(struct msghdr.msg_flags,
> [AC_DEFINE(HAS_MSGHDR_FLAGS)], , [#include <sys/socket.h>])
>
> CHECK_FUNCTION_EXISTS(socklen_t HAS_SOCKLEN_T)
> AC_CHECK_TYPE(socklen_t, [AC_DEFINE(HAS_SOCKLEN_T)], ,
> #include <sys/types.h>
> #include <sys/socket.h>
> )
>
> AC_EGREP_HEADER(MSG_MAXIOVLEN, /usr/include/sys/socket.h,
> AC_DEFINE(ENET_BUFFER_MAXIMUM, [MSG_MAXIOVLEN]))
> AC_EGREP_HEADER(MSG_MAXIOVLEN, socket.h,
> AC_DEFINE(ENET_BUFFER_MAXIMUM, [MSG_MAXIOVLEN]))
May be you can look at:
http://www.cmake.org/Wiki/CMake:How_To_Write_Platform_Checks
CHECK_INCLUDE_FILES
CHECK_FUNCTION_EXISTS
CHECK_SYMBOL_EXISTS
CHECK_LIBRARY_EXISTS
I did not find equivalent of
AC_CHECK_MEMBER
but may be it exists and I don't know it.
--
Erk
More information about the CMake
mailing list