1 Star 0 Fork 4

chenrenhui/mexti

forked from bywayboy/mexti 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.m4 3.86 KB
一键复制 编辑 原始数据 按行查看 历史
bywayboy 提交于 2022-12-17 03:38 . save
dnl config.m4 for extension mexti
dnl Comments in this file start with the string 'dnl'.
dnl Remove where necessary.
dnl If your extension references something external, use 'with':
dnl PHP_ARG_WITH([mexti],
dnl [for mexti support],
dnl [AS_HELP_STRING([--with-mexti],
dnl [Include mexti support])])
dnl Otherwise use 'enable':
PHP_ARG_ENABLE([mexti],
[whether to enable mexti support],
[AS_HELP_STRING([--enable-mexti],
[Enable mexti support])],
[no])
if test "$PHP_MEXTI" != "no"; then
dnl Write more examples of tests here...
dnl Remove this code block if the library does not support pkg-config.
dnl PKG_CHECK_MODULES([LIBFOO], [foo])
dnl PHP_EVAL_INCLINE($LIBFOO_CFLAGS)
dnl PHP_EVAL_LIBLINE($LIBFOO_LIBS, MEXTI_SHARED_LIBADD)
dnl If you need to check for a particular library version using PKG_CHECK_MODULES,
dnl you can use comparison operators. For example:
dnl PKG_CHECK_MODULES([LIBFOO], [foo >= 1.2.3])
dnl PKG_CHECK_MODULES([LIBFOO], [foo < 3.4])
dnl PKG_CHECK_MODULES([LIBFOO], [foo = 1.2.3])
dnl Remove this code block if the library supports pkg-config.
dnl --with-mexti -> check with-path
dnl SEARCH_PATH="/usr/local /usr" # you might want to change this
dnl SEARCH_FOR="/include/mexti.h" # you most likely want to change this
dnl if test -r $PHP_MEXTI/$SEARCH_FOR; then # path given as parameter
dnl MEXTI_DIR=$PHP_MEXTI
dnl else # search default path list
dnl AC_MSG_CHECKING([for mexti files in default path])
dnl for i in $SEARCH_PATH ; do
dnl if test -r $i/$SEARCH_FOR; then
dnl MEXTI_DIR=$i
dnl AC_MSG_RESULT(found in $i)
dnl fi
dnl done
dnl fi
dnl
dnl if test -z "$MEXTI_DIR"; then
dnl AC_MSG_RESULT([not found])
dnl AC_MSG_ERROR([Please reinstall the mexti distribution])
dnl fi
dnl Remove this code block if the library supports pkg-config.
dnl --with-mexti -> add include path
dnl PHP_ADD_INCLUDE($MEXTI_DIR/include)
dnl Remove this code block if the library supports pkg-config.
dnl --with-mexti -> check for lib and symbol presence
dnl LIBNAME=MEXTI # you may want to change this
dnl LIBSYMBOL=MEXTI # you most likely want to change this
dnl If you need to check for a particular library function (e.g. a conditional
dnl or version-dependent feature) and you are using pkg-config:
dnl PHP_CHECK_LIBRARY($LIBNAME, $LIBSYMBOL,
dnl [
dnl AC_DEFINE(HAVE_MEXTI_FEATURE, 1, [ ])
dnl ],[
dnl AC_MSG_ERROR([FEATURE not supported by your mexti library.])
dnl ], [
dnl $LIBFOO_LIBS
dnl ])
dnl If you need to check for a particular library function (e.g. a conditional
dnl or version-dependent feature) and you are not using pkg-config:
dnl PHP_CHECK_LIBRARY($LIBNAME, $LIBSYMBOL,
dnl [
dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $MEXTI_DIR/$PHP_LIBDIR, MEXTI_SHARED_LIBADD)
dnl AC_DEFINE(HAVE_MEXTI_FEATURE, 1, [ ])
dnl ],[
dnl AC_MSG_ERROR([FEATURE not supported by your mexti library.])
dnl ],[
dnl -L$MEXTI_DIR/$PHP_LIBDIR -lm
dnl ])
dnl
dnl PHP_SUBST(MEXTI_SHARED_LIBADD)
dnl In case of no dependencies
AC_DEFINE(HAVE_MEXTI, 1, [ Have mexti support ])
PHP_NEW_EXTENSION(mexti,
mexti.c minheap/mexti_minheap.c minheap/mexti_heapnode.c lua/mexti_lua.c lib/minheap.c lib/lua/src/lapi.c lib/lua/src/lbaselib.c lib/lua/src/lcorolib.c lib/lua/src/ldblib.c lib/lua/src/ldo.c lib/lua/src/lfunc.c lib/lua/src/linit.c lib/lua/src/llex.c lib/lua/src/lmem.c lib/lua/src/lobject.c lib/lua/src/loslib.c lib/lua/src/lstate.c lib/lua/src/lstrlib.c lib/lua/src/ltablib.c lib/lua/src/lua.c lib/lua/src/lundump.c lib/lua/src/lvm.c lib/lua/src/lauxlib.c lib/lua/src/lcode.c lib/lua/src/lctype.c lib/lua/src/ldebug.c lib/lua/src/ldump.c lib/lua/src/lgc.c lib/lua/src/lmathlib.c lib/lua/src/lopcodes.c lib/lua/src/lparser.c lib/lua/src/lstring.c lib/lua/src/ltable.c lib/lua/src/ltm.c lib/lua/src/lutf8lib.c lib/lua/src/lzio.c, $ext_shared)
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/chenrenh/mexti.git
git@gitee.com:chenrenh/mexti.git
chenrenh
mexti
mexti
master

搜索帮助