[php]代码库dnl $Id$

dnl config.m4 for extension say_hello

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(say_hello, for say_hello support,

dnl Make sure that the comment is aligned:

dnl [ --with-say_hello Include say_hello support])

dnl Otherwise use enable:

dnl PHP_ARG_ENABLE(say_hello, whether to enable say_hello support,

dnl Make sure that the comment is aligned:

dnl [ --enable-say_hello Enable say_hello support])

if test "$PHP_SAY_HELLO" != "no"; then

dnl Write more examples of tests here...

dnl # --with-say_hello -> check with-path

dnl SEARCH_PATH="/usr/local /usr" # you might want to change this

dnl SEARCH_FOR="/include/say_hello.h" # you most likely want to change this

dnl if test -r $PHP_SAY_HELLO/$SEARCH_FOR; then # path given as parameter

dnl SAY_HELLO_DIR=$PHP_SAY_HELLO

dnl else # search default path list

dnl AC_MSG_CHECKING([for say_hello files in default path])

dnl for i in $SEARCH_PATH ; do

dnl if test -r $i/$SEARCH_FOR; then

dnl SAY_HELLO_DIR=$i

dnl AC_MSG_RESULT(found in $i)

dnl fi

dnl done

dnl fi

dnl

dnl if test -z "$SAY_HELLO_DIR"; then

dnl AC_MSG_RESULT([not found])

dnl AC_MSG_ERROR([Please reinstall the say_hello distribution])

dnl fi

dnl # --with-say_hello -> add include path

dnl PHP_ADD_INCLUDE($SAY_HELLO_DIR/include)

dnl # --with-say_hello -> check for lib and symbol presence

dnl LIBNAME=say_hello # you may want to change this

dnl LIBSYMBOL=say_hello # you most likely want to change this

dnl PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,

dnl [

dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $SAY_HELLO_DIR/lib, SAY_HELLO_SHARED_LIBADD)

dnl AC_DEFINE(HAVE_SAY_HELLOLIB,1,[ ])

dnl ],[

dnl AC_MSG_ERROR([wrong say_hello lib version or lib not found])

dnl ],[

dnl -L$SAY_HELLO_DIR/lib -lm

dnl ])

dnl

dnl PHP_SUBST(SAY_HELLO_SHARED_LIBADD)

PHP_NEW_EXTENSION(say_hello, say_hello.c, $ext_shared)

fi

php buildconf,PHP Extension开发 Unix Build System配置 conf相关推荐

  1. 使用Xcode External Build System实现Rust 项目 Capture GPU Frame 在线调试 Metal 2018.12.18

    文档列表见:Rust 移动端跨平台复杂图形渲染项目开发系列总结(目录) 根据kvark指导,Xcode创建External Build System项目可通过Capture GPU Frame查看gf ...

  2. Android开发之深入理解Android Studio构建文件build.gradle配置

    通过这篇文章的学习,你会对build.gradle文件有一个全新的认识,可以将TeachCourse文章提到的相关说明作为文档参考,方便在另一个module中引入,代码如下: apply plugin ...

  3. 在 IBM LinuxONE 云端平台建构虚拟服务器在线测试以 Docker 开发的 Application system

    在 IBM LinuxONE 云端平台建构虚拟服务器在线测试以 Docker 开发的 Application system 作者:陳兆麟 Email:chenlin2@ms9.hinet.net 在本 ...

  4. Mastering Android NDK Build System - Part 1: Techniques with ndk-build

    This article is not a "Hello world!"-type tutorial for NDK. Although I will still provide ...

  5. ST3新建py2和py3的build system

    win7上同时装了py2和py3,在ST3中执行需要分别新建各自的build system:Tools->Build System->New Build System py2: {&quo ...

  6. 使用IBM Blockchain Platform extension开发你的第一个fabric智能合约

    文章目录 安装IBM Blockchain Platform extension for VS Code 创建一个智能合约项目 理解智能合约 打包智能合约 Local Fabric Ops 安装智能合 ...

  7. xcode编译错误:The Legacy Build System will be removed in a future release.

    xcode报错 The Legacy Build System will be removed in a future release. You can configure the selected ...

  8. [Unix下C/C++开发] unix编程书籍推荐

    [Unix下C/C++开发] unix编程书籍推荐 发表于1年前(2012-12-20 10:14)   阅读(256) | 评论(0) 6人收藏此文章, 我要收藏 赞0 Unix/Linux/BSD ...

  9. Legacy Build System

    升级XCode10后报以下报错: Showing All Messages ? Multiple commands produce '/Users/saj/Library/Developer/Xcod ...

  10. 错误“checking build system type... config.sub: missing argument”的解决办法

    背景:交叉编译avahi库时遇到错误"checking build system type... config.sub: missing argument" ,"conf ...

最新文章

  1. 嵌入式Linux设备驱动程序:用户空间中的设备驱动程序
  2. Angular1.4.6框架简单读取数据库信息并渲染完成news新闻文章列表以及detail详情页功能(小试牛刀)
  3. A simple class to play sound on netcf (part 2)
  4. 深度|​揭秘5G+AI时代的机器人世界!七大核心技术改变人类生活!
  5. 苹果电脑安装python-mac电脑安装python
  6. VTK修炼之道62:体绘制_固定点光线投影体绘制与GPU加速光线投影体绘制
  7. 【单机实现系列】SCDPM2012实现数据保护
  8. LeetCode 1765. 地图中的最高点(BFS)
  9. 基于java的络教学平台的设计与实现 (含源文件)
  10. 在 Windows 7 中禁用IPv6协议/IPv6隧道
  11. Hibernate:More than one row with the given identifier was found解决办法
  12. thinkphppaginate.php,thinkphp如何使用paginate及其参数示例使用
  13. 怎么改mnist数据的标签_详解 MNIST 数据集
  14. vmware安装win10并使用xshell成功连接及虚拟机中win10设置静态ip
  15. 电路串联和并联图解_画简单的串联、并联电路图
  16. 深海迷航坐标传送代码_深海迷航代码大全_深海迷航作弊码汇总及代码使用教程_咖绿茵手游站...
  17. 在线IP到地理位置解析的API接口,IP到地理位置、所属组织名、AS号、域名反查
  18. 最终幻想14 服务器维护,《FF14》服务器遭到攻击 官方补偿方案今日不收时长费...
  19. java web 播放音频_用webAudio和canvas实现音频可视化
  20. 如何运用 DDD 解决团队协作与沟通问题?

热门文章

  1. unity 获取预制体_Unity实战之道具系统
  2. 生活中常见物联网实例_包邮赠书| 什么是物联网?常见IoT 物联网协议最全讲解...
  3. php怎么实现显示gif图片,利用PHP怎么对gif图片进行判断
  4. java实现qq抢红包_java实现抢红包算法(公平版和手速版)
  5. oracle for list,oracle – PL / SQL – 在Where子句中使用“List”变量
  6. mysql数据词典生成markdown_老板让我把数据库字典导出到Markdown格式的文件
  7. NO.3 寻找数组主要元素
  8. iOS:Universal Link
  9. HDU 4630 No Pain No Game (线段树+离线)
  10. 引用内部函数绑定机制,R转义字符,C++引用,别名,模板元,宏,断言,C++多线程,C++智能指针...