1- ngx_addon_name=ngx_http_php_module
2- HTTP_MODULES="$HTTP_MODULES ngx_http_php_module"
3- NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/src/ngx_http_php_module.c \
4- $ngx_addon_dir/src/ngx_http_php_core.c \
5- $ngx_addon_dir/src/ngx_http_php_directive.c \
6- $ngx_addon_dir/src/ngx_http_php_handler.c \
7- $ngx_addon_dir/src/ngx_http_php_request.c \
8- $ngx_addon_dir/src/ngx_http_php_zend_uthread.c \
9- $ngx_addon_dir/src/ngx_http_php_sleep.c \
10- $ngx_addon_dir/src/ngx_http_php_socket.c \
11- $ngx_addon_dir/src/ngx_http_php_util.c \
12- $ngx_addon_dir/src/ngx_php_debug.c \
13- $ngx_addon_dir/src/php/impl/php_ngx.c \
14- $ngx_addon_dir/src/php/impl/php_ngx_test.c \
15- $ngx_addon_dir/src/php/impl/php_ngx_track.c \
16- $ngx_addon_dir/src/php/impl/php_ngx_core.c \
17- $ngx_addon_dir/src/php/impl/php_ngx_log.c \
18- $ngx_addon_dir/src/php/impl/php_ngx_request.c \
19- $ngx_addon_dir/src/php/impl/php_ngx_generator.c \
20- $ngx_addon_dir/src/php/impl/php_ngx_socket.c \
21- "
22- NGX_ADDON_DEPS="$NGX_ADDON_DEPS $ngx_addon_dir/src/ngx_http_php_module.h \
23- $ngx_addon_dir/src/ngx_http_php_core.h \
24- $ngx_addon_dir/src/ngx_http_php_directive.h \
25- $ngx_addon_dir/src/ngx_http_php_handler.h \
26- $ngx_addon_dir/src/ngx_http_php_request.h \
27- $ngx_addon_dir/src/ngx_http_php_zend_uthread.h \
28- $ngx_addon_dir/src/ngx_http_php_sleep.h \
29- $ngx_addon_dir/src/ngx_http_php_socket.h \
30- $ngx_addon_dir/src/ngx_http_php_util.h \
31- $ngx_addon_dir/src/ngx_php_debug.h \
32- $ngx_addon_dir/src/php/impl/php_ngx.h \
33- $ngx_addon_dir/src/php/impl/php_ngx_test.h \
34- $ngx_addon_dir/src/php/impl/php_ngx_track.h \
35- $ngx_addon_dir/src/php/impl/php_ngx_core.h \
36- $ngx_addon_dir/src/php/impl/php_ngx_log.h \
37- $ngx_addon_dir/src/php/impl/php_ngx_request.h \
38- $ngx_addon_dir/src/php/impl/php_ngx_generator.h \
39- $ngx_addon_dir/src/php/impl/php_ngx_socket.h \
40- "
1+ ngx_addon_name=ngx_http_php7_module
412
42- CORE_INCS="$CORE_INCS $PHP_INC $PHP_INC/main $PHP_INC/TSRM $PHP_INC/Zend $PHP_INC/ext $PHP_INC/ext/date/lib $PHP_INC/sapi/embed "
3+ NGX_PHP_SRCS="$ngx_addon_dir/src/ngx_http_php_module.c \
4+ $ngx_addon_dir/src/ngx_http_php_core.c \
5+ $ngx_addon_dir/src/ngx_http_php_directive.c \
6+ $ngx_addon_dir/src/ngx_http_php_handler.c \
7+ $ngx_addon_dir/src/ngx_http_php_request.c \
8+ $ngx_addon_dir/src/ngx_http_php_zend_uthread.c \
9+ $ngx_addon_dir/src/ngx_http_php_sleep.c \
10+ $ngx_addon_dir/src/ngx_http_php_socket.c \
11+ $ngx_addon_dir/src/ngx_http_php_util.c \
12+ $ngx_addon_dir/src/ngx_http_php_variable.c \
13+ $ngx_addon_dir/src/ngx_php_debug.c \
14+ $ngx_addon_dir/src/php/impl/php_ngx.c \
15+ $ngx_addon_dir/src/php/impl/php_ngx_test.c \
16+ $ngx_addon_dir/src/php/impl/php_ngx_track.c \
17+ $ngx_addon_dir/src/php/impl/php_ngx_core.c \
18+ $ngx_addon_dir/src/php/impl/php_ngx_log.c \
19+ $ngx_addon_dir/src/php/impl/php_ngx_request.c \
20+ $ngx_addon_dir/src/php/impl/php_ngx_generator.c \
21+ $ngx_addon_dir/src/php/impl/php_ngx_socket.c \
22+ $ngx_addon_dir/src/php/impl/php_ngx_var.c \
23+ "
24+ NGX_PHP_DEPS="$ngx_addon_dir/src/ngx_http_php_module.h \
25+ $ngx_addon_dir/src/ngx_http_php_core.h \
26+ $ngx_addon_dir/src/ngx_http_php_directive.h \
27+ $ngx_addon_dir/src/ngx_http_php_handler.h \
28+ $ngx_addon_dir/src/ngx_http_php_request.h \
29+ $ngx_addon_dir/src/ngx_http_php_zend_uthread.h \
30+ $ngx_addon_dir/src/ngx_http_php_sleep.h \
31+ $ngx_addon_dir/src/ngx_http_php_socket.h \
32+ $ngx_addon_dir/src/ngx_http_php_util.h \
33+ $ngx_addon_dir/src/ngx_http_php_variable.h \
34+ $ngx_addon_dir/src/ngx_php_debug.h \
35+ $ngx_addon_dir/src/php/impl/php_ngx.h \
36+ $ngx_addon_dir/src/php/impl/php_ngx_test.h \
37+ $ngx_addon_dir/src/php/impl/php_ngx_track.h \
38+ $ngx_addon_dir/src/php/impl/php_ngx_core.h \
39+ $ngx_addon_dir/src/php/impl/php_ngx_log.h \
40+ $ngx_addon_dir/src/php/impl/php_ngx_request.h \
41+ $ngx_addon_dir/src/php/impl/php_ngx_generator.h \
42+ $ngx_addon_dir/src/php/impl/php_ngx_socket.h \
43+ $ngx_addon_dir/src/php/impl/php_ngx_var.h \
44+ "
4345
44- CORE_LIBS="$CORE_LIBS `$PHP_BIN/php-config --ldflags` -L$PHP_LIB -lphp7 `$PHP_BIN/php-config --libs` "
46+ if [ -z "$PHP_CONFIG" ]; then
47+ PHP_CONFIG=`which php-config`
48+ fi
4549
46- #CORE_INCS="$CORE_INCS /usr/local/php72/include/php /usr/local/php72/include/php/main /usr/local/php72/include/php/TSRM /usr/local/php72/include/php/Zend /usr/local/php72/include/php/ext /usr/local/php72/include/php/ext/date/lib /usr/local/php72/include/php/sapi/embed "
50+ if [ -z "$NGX_PHP_INCS" ]; then
51+ NGX_PHP_INCS="`$PHP_CONFIG --includes | sed 's/-I//g'` `$PHP_CONFIG --include-dir`/sapi/embed "
52+ fi
53+ if [ -z "$NGX_PHP_LIBS" ]; then
54+ NGX_PHP_LIBS="`$PHP_CONFIG --ldflags` `$PHP_CONFIG --libs` -lphp7 "
55+ fi
4756
48- #CORE_LIBS="$CORE_LIBS `/usr/local/php72/bin/php-config --ldflags` -L/usr/local/php72/lib -lphp7 `/usr/local/php72/bin/php-config --libs` "
57+ if [ $ngx_module_link = DYNAMIC ] ; then
58+ ngx_module_type=HTTP_AUX_FILTER
59+ ngx_module_name="ngx_http_php_module"
60+ ngx_module_srcs="$NGX_PHP_SRCS"
61+ ngx_module_deps="$NGX_PHP_DEPS"
62+ ngx_module_incs="$NGX_PHP_INCS"
63+ ngx_module_libs="$NGX_PHP_LIBS"
64+
65+ . auto/module
66+ else
67+ HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_php_module"
68+ NGX_ADDON_SRCS="$NGX_ADDON_SRCS $NGX_PHP_SRCS"
69+ NGX_ADDON_DEPS="$NGX_ADDON_DEPS $NGX_PHP_DEPS"
70+ CORE_INCS="$CORE_INCS $NGX_PHP_INCS "
71+ CORE_LIBS="$CORE_LIBS $NGX_PHP_LIBS "
72+ fi
4973
5074have=NDK_SET_VAR . auto/have
0 commit comments