-
Notifications
You must be signed in to change notification settings - Fork 34
/
config
75 lines (68 loc) · 3.19 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
ngx_addon_name=ngx_http_php7_module
NGX_PHP_SRCS="$ngx_addon_dir/src/ngx_http_php_module.c \
$ngx_addon_dir/src/ngx_http_php_core.c \
$ngx_addon_dir/src/ngx_http_php_directive.c \
$ngx_addon_dir/src/ngx_http_php_handler.c \
$ngx_addon_dir/src/ngx_http_php_request.c \
$ngx_addon_dir/src/ngx_http_php_zend_uthread.c \
$ngx_addon_dir/src/ngx_http_php_sleep.c \
$ngx_addon_dir/src/ngx_http_php_socket.c \
$ngx_addon_dir/src/ngx_http_php_util.c \
$ngx_addon_dir/src/ngx_http_php_variable.c \
$ngx_addon_dir/src/ngx_http_php_header.c \
$ngx_addon_dir/src/ngx_php_debug.c \
$ngx_addon_dir/src/php/impl/php_ngx.c \
$ngx_addon_dir/src/php/impl/php_ngx_core.c \
$ngx_addon_dir/src/php/impl/php_ngx_log.c \
$ngx_addon_dir/src/php/impl/php_ngx_request.c \
$ngx_addon_dir/src/php/impl/php_ngx_socket.c \
$ngx_addon_dir/src/php/impl/php_ngx_var.c \
$ngx_addon_dir/src/php/impl/php_ngx_sockets.c \
$ngx_addon_dir/src/php/impl/php_ngx_header.c \
"
NGX_PHP_DEPS="$ngx_addon_dir/src/ngx_http_php_module.h \
$ngx_addon_dir/src/ngx_http_php_core.h \
$ngx_addon_dir/src/ngx_http_php_directive.h \
$ngx_addon_dir/src/ngx_http_php_handler.h \
$ngx_addon_dir/src/ngx_http_php_request.h \
$ngx_addon_dir/src/ngx_http_php_zend_uthread.h \
$ngx_addon_dir/src/ngx_http_php_sleep.h \
$ngx_addon_dir/src/ngx_http_php_socket.h \
$ngx_addon_dir/src/ngx_http_php_util.h \
$ngx_addon_dir/src/ngx_http_php_variable.h \
$ngx_addon_dir/src/ngx_http_php_header.h \
$ngx_addon_dir/src/ngx_php_debug.h \
$ngx_addon_dir/src/php/impl/php_ngx.h \
$ngx_addon_dir/src/php/impl/php_ngx_core.h \
$ngx_addon_dir/src/php/impl/php_ngx_log.h \
$ngx_addon_dir/src/php/impl/php_ngx_request.h \
$ngx_addon_dir/src/php/impl/php_ngx_socket.h \
$ngx_addon_dir/src/php/impl/php_ngx_var.h \
$ngx_addon_dir/src/php/impl/php_ngx_sockets.h \
$ngx_addon_dir/src/php/impl/php_ngx_header.h \
"
if [ -z "$PHP_CONFIG" ]; then
PHP_CONFIG=`which php-config`
fi
if [ -z "$NGX_PHP_INCS" ]; then
NGX_PHP_INCS="`$PHP_CONFIG --includes | sed 's/-I//g'` `$PHP_CONFIG --include-dir`/sapi/embed "
fi
if [ -z "$NGX_PHP_LIBS" ]; then
NGX_PHP_LIBS="`$PHP_CONFIG --ldflags` `$PHP_CONFIG --libs` -L$PHP_LIB -lphp7 "
fi
if [ $ngx_module_link = DYNAMIC ] ; then
ngx_module_type=HTTP_AUX_FILTER
ngx_module_name="ngx_http_php_module"
ngx_module_srcs="$NGX_PHP_SRCS"
ngx_module_deps="$NGX_PHP_DEPS"
ngx_module_incs="$NGX_PHP_INCS"
ngx_module_libs="$NGX_PHP_LIBS"
. auto/module
else
HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_php_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $NGX_PHP_SRCS"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $NGX_PHP_DEPS"
CORE_INCS="$CORE_INCS $NGX_PHP_INCS "
CORE_LIBS="$CORE_LIBS $NGX_PHP_LIBS "
fi
have=NDK_SET_VAR . auto/have