1 Star 0 Fork 4

zhanglei/PHP class fetch_url

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config.m4 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
上帝禁区 提交于 2013-06-19 23:31 +08:00 . 修改编译文件
dnl $Id$
dnl config.m4 for extension fetch_url
dnl Comments in this file start with the string 'dnl'.
dnl Remove where necessary. This file will not work
dnl without editing.
dnl If your extension references something external, use with:
dnl PHP_ARG_WITH(fetch_url, for fetch_url support,
dnl Make sure that the comment is aligned:
dnl [ --with-fetch_url Include fetch_url support])
dnl Otherwise use enable:
PHP_ARG_ENABLE(fetch_url, whether to enable fetch_url support,
dnl Make sure that the comment is aligned:
[ --enable-fetch_url Enable fetch_url support])
SEARCH_PATH="/usr/local/include /usr/include"
LIB_SEARCH_PATH="/usr/lib /usr/local/lib"
if test "$PHP_FETCH_URL" != "no"; then
dnl 验证curl头文件
for i in $SEARCH_PATH ; do
if test -f $i/curl/curl.h; then
CURL_DIR=$i
fi
done
if test -z "$CURL_DIR"; then
AC_MSG_ERROR([curl.h not found])
fi
dnl 验证libcurl.so文件
for i in $LIB_SEARCH_PATH ; do
if test -f $i/libcurl.so; then
LIB_CURL_DIR=$i
fi
done
if test -z "$LIB_CURL_DIR"; then
AC_MSG_ERROR([libcurl.so not found])
fi
PHP_ADD_INCLUDE($CURL_DIR)
PHP_ADD_LIBRARY_WITH_PATH(curl, $LIB_CURL_DIR, FETCH_URL_SHARED_LIBADD)
PHP_NEW_EXTENSION(fetch_url, fetch_url.c, $ext_shared)
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/zhanglei/php-class-fetch_url.git
git@gitee.com:zhanglei/php-class-fetch_url.git
zhanglei
php-class-fetch_url
PHP class fetch_url
master

搜索帮助