0
this tutorial을 사용하여 PHP 확장 코드를 작성하려고합니다.PHP - Extension Config.m4 파일
config.m4
파일에는 PHP_ARG_ENABLE
등과 같은 매크로가 있습니다. 이러한 매크로에 대한 정의는 어디에 있습니까?
this tutorial을 사용하여 PHP 확장 코드를 작성하려고합니다.PHP - Extension Config.m4 파일
config.m4
파일에는 PHP_ARG_ENABLE
등과 같은 매크로가 있습니다. 이러한 매크로에 대한 정의는 어디에 있습니까?
는 그것은 /acinclude.m4
dnl
dnl PHP_ARG_ENABLE(arg-name, check message, help text[, default-val[, extension-or-not]])
dnl Sets PHP_ARG_NAME either to the user value or to the default value.
dnl default-val defaults to no. This will also set the variable ext_shared,
dnl and will overwrite any previous variable of that name.
dnl If extension-or-not is yes (default), then do the ENABLE_ALL check and run
dnl the PHP_ARG_ANALYZE_EX.
dnl
AC_DEFUN([PHP_ARG_ENABLE],[
php_enable_[]translit($1,A-Z0-9-,a-z0-9_)=ifelse($4,,no,$4)
PHP_REAL_ARG_ENABLE([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z0-9-,A-Z0-9_),[ifelse($5,,yes,$5)])
])
덕분에 정의되어 @VolkerK –