1 Star 0 Fork 0

hzcc/czmq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
acinclude.m4 854 Bytes
一键复制 编辑 原始数据 按行查看 历史
AC_DEFUN([AX_PROJECT_LOCAL_HOOK], [
AC_CHECK_HEADERS(pthread.h)
AC_CHECK_LIB([pthread], [pthread_create],
[CFLAGS="${CFLAGS} -pthread"],
[AC_MSG_WARN([cannot link with -pthread.])]
)
AC_CACHE_CHECK([whether SOCK_CLOEXEC is supported], [czmq_cv_sock_cloexec],
[AC_TRY_RUN([/* SOCK_CLOEXEC test */
#include <sys/types.h>
#include <sys/socket.h>
int main (int argc, char *argv [])
{
int s = socket (PF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0);
return (s == -1);
}
],
[czmq_cv_sock_cloexec="yes"],
[czmq_cv_sock_cloexec="no"],
[czmq_cv_sock_cloexec="not during cross-compile"]
)]
)
AS_IF([test "x$czmq_cv_sock_cloexec" = "xyes"],
AC_DEFINE([CZMQ_HAVE_SOCK_CLOEXEC],
[1],
[Whether SOCK_CLOEXEC is defined and functioning.])
)
])
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hwang_zc/czmq.git
git@gitee.com:hwang_zc/czmq.git
hwang_zc
czmq
czmq
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385