generated from koriym/ext-helloworld
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from ray-di/method_intercept_init2
Introduce method_intercept_init(), method_intercept_enable() function
- Loading branch information
Showing
14 changed files
with
883 additions
and
571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,26 @@ | ||
dnl $Id$ | ||
dnl config.m4 for extension rayaop | ||
|
||
dnl Include PECL configuration macro | ||
dnl link https://github.com/php/pecl-tools/blob/master/autoconf/pecl.m4 | ||
sinclude(./autoconf/pecl.m4) | ||
PHP_ARG_ENABLE(rayaop, whether to enable rayaop, | ||
[ --enable-rayaop Enable rayaop]) | ||
|
||
dnl Include macro for detecting PHP executable | ||
dnl link https://github.com/php/pecl-tools/blob/master/autoconf/php-executable.m4 | ||
sinclude(./autoconf/php-executable.m4) | ||
|
||
dnl Initialize PECL extension | ||
dnl link https://github.com/php/pecl-tools/blob/master/pecl.m4#L229 | ||
PECL_INIT([rayaop]) | ||
|
||
dnl Add configuration option to enable the extension | ||
dnl link https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/External-Shell-Variables.html | ||
PHP_ARG_ENABLE(rayaop, whether to enable rayaop, [ --enable-rayaop Enable rayaop]) | ||
|
||
dnl Process if the extension is enabled | ||
if test "$PHP_RAYAOP" != "no"; then | ||
dnl Define whether the extension is enabled | ||
dnl link https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Defining-Variables.html | ||
AC_DEFINE(HAVE_RAYAOP, 1, [whether rayaop is enabled]) | ||
|
||
dnl Add new PHP extension | ||
dnl link https://www.phpinternalsbook.com/build_system/build_system.html | ||
PHP_NEW_EXTENSION(rayaop, rayaop.c, $ext_shared) | ||
|
||
dnl Add Makefile fragment | ||
dnl link https://www.phpinternalsbook.com/build_system/build_system.html#php-add-makefile-fragment | ||
PHP_ADD_MAKEFILE_FRAGMENT | ||
|
||
dnl Add instruction to install header files | ||
dnl link https://www.phpinternalsbook.com/build_system/build_system.html#php-install-headers | ||
PHP_INSTALL_HEADERS([ext/rayaop], [php_rayaop.h]) | ||
|
||
dnl Add quiet mode option | ||
PHP_ARG_ENABLE(rayaop-quiet, whether to suppress experimental notices, | ||
[ --enable-rayaop-quiet Suppress experimental notices], no, yes) | ||
[ --enable-rayaop-quiet Suppress experimental notices], no, yes) | ||
|
||
if test "$PHP_RAYAOP_QUIET" != "no"; then | ||
AC_DEFINE(RAYAOP_QUIET, 1, [Whether to suppress experimental notices]) | ||
AC_DEFINE(RAYAOP_QUIET, 1, [Whether to suppress experimental notices]) | ||
fi | ||
fi | ||
fi |
Oops, something went wrong.