Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / nginx / configure
blobd7d8189af93f5f623f3ee87b671b089d8ae383ad
1 #!/bin/sh
3 # Copyright (C) Igor Sysoev
4 # Copyright (C) Nginx, Inc.
7 LC_ALL=C
8 export LC_ALL
10 . auto/options
11 . auto/init
12 . auto/sources
14 test -d $NGX_OBJS || mkdir $NGX_OBJS
16 echo > $NGX_AUTO_HEADERS_H
17 echo > $NGX_AUTOCONF_ERR
19 echo "#define NGX_CONFIGURE \"$NGX_CONFIGURE\"" > $NGX_AUTO_CONFIG_H
22 if [ $NGX_DEBUG = YES ]; then
23 have=NGX_DEBUG . auto/have
27 if test -z "$NGX_PLATFORM"; then
28 echo "checking for OS"
30 NGX_SYSTEM=`uname -s 2>/dev/null`
31 NGX_RELEASE=`uname -r 2>/dev/null`
32 NGX_MACHINE=`uname -m 2>/dev/null`
34 echo " + $NGX_SYSTEM $NGX_RELEASE $NGX_MACHINE"
36 NGX_PLATFORM="$NGX_SYSTEM:$NGX_RELEASE:$NGX_MACHINE";
38 case "$NGX_SYSTEM" in
39 MINGW32_*)
40 NGX_PLATFORM=win32
42 esac
44 else
45 echo "building for $NGX_PLATFORM"
46 NGX_SYSTEM=$NGX_PLATFORM
49 . auto/cc/conf
51 if [ "$NGX_PLATFORM" != win32 ]; then
52 . auto/headers
55 . auto/os/conf
57 if [ "$NGX_PLATFORM" != win32 ]; then
58 . auto/unix
61 . auto/modules
62 . auto/lib/conf
64 case ".$NGX_PREFIX" in
66 NGX_PREFIX=${NGX_PREFIX:-/usr/local/nginx}
67 have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
70 .!)
71 NGX_PREFIX=
75 have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
77 esac
79 if [ ".$NGX_CONF_PREFIX" != "." ]; then
80 have=NGX_CONF_PREFIX value="\"$NGX_CONF_PREFIX/\"" . auto/define
83 have=NGX_SBIN_PATH value="\"$NGX_SBIN_PATH\"" . auto/define
84 have=NGX_CONF_PATH value="\"$NGX_CONF_PATH\"" . auto/define
85 have=NGX_PID_PATH value="\"$NGX_PID_PATH\"" . auto/define
86 have=NGX_LOCK_PATH value="\"$NGX_LOCK_PATH\"" . auto/define
87 have=NGX_ERROR_LOG_PATH value="\"$NGX_ERROR_LOG_PATH\"" . auto/define
89 have=NGX_HTTP_LOG_PATH value="\"$NGX_HTTP_LOG_PATH\"" . auto/define
90 have=NGX_HTTP_CLIENT_TEMP_PATH value="\"$NGX_HTTP_CLIENT_TEMP_PATH\""
91 . auto/define
92 have=NGX_HTTP_PROXY_TEMP_PATH value="\"$NGX_HTTP_PROXY_TEMP_PATH\""
93 . auto/define
94 have=NGX_HTTP_FASTCGI_TEMP_PATH value="\"$NGX_HTTP_FASTCGI_TEMP_PATH\""
95 . auto/define
96 have=NGX_HTTP_UWSGI_TEMP_PATH value="\"$NGX_HTTP_UWSGI_TEMP_PATH\""
97 . auto/define
98 have=NGX_HTTP_SCGI_TEMP_PATH value="\"$NGX_HTTP_SCGI_TEMP_PATH\""
99 . auto/define
101 . auto/make
102 . auto/lib/make
103 . auto/install
105 # STUB
106 . auto/stubs
108 have=NGX_USER value="\"$NGX_USER\"" . auto/define
109 have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define
111 . auto/summary