config.m4
来自「php-4.4.7学习linux时下载的源代码」· M4 代码 · 共 33 行
M4
33 行
dnldnl $Id: config.m4,v 1.11.2.2 2005/02/12 18:16:04 sniper Exp $dnlPHP_ARG_ENABLE(sockets, whether to enable sockets support,[ --enable-sockets Enable sockets support])if test "$PHP_SOCKETS" != "no"; then dnl Check for struct cmsghdr AC_CACHE_CHECK([for struct cmsghdr], ac_cv_cmsghdr, [ AC_TRY_COMPILE([#include <sys/types.h>#include <sys/socket.h>], [struct cmsghdr s; s], ac_cv_cmsghdr=yes, ac_cv_cmsghdr=no) ]) if test "$ac_cv_cmsghdr" = yes; then AC_DEFINE(HAVE_CMSGHDR,1,[Whether you have struct cmsghdr]) fi AC_CHECK_FUNCS([hstrerror set_h_errno]) AC_CHECK_HEADERS([netdb.h netinet/tcp.h sys/un.h errno.h]) AC_TRY_COMPILE([#include <sys/types.h>#include <sys/socket.h> ], [static struct msghdr tp; int n = (int) tp.msg_flags; return n],[], [AC_DEFINE(MISSING_MSGHDR_MSGFLAGS, 1, [ ])] ) AC_DEFINE([HAVE_SOCKETS], 1, [ ]) PHP_NEW_EXTENSION([sockets], [sockets.c], [$ext_shared])fi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?