mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
nginx-0.1.9-RELEASE import
*) Bugfix: the proxied request was sent without arguments if the
request contains "//", "/./", "/../" or "%XX".
*) Bugfix: the large compressed responses may be transferred not
completely.
*) Bugfix: the files bigger than 2G was not transferred on Linux that
does not support sendfile64().
*) Bugfix: while the build configuration on Linux the
--with-poll_module parameter was required; the bug had appeared in
0.1.8.
This commit is contained in:
14
auto/cc/bcc
14
auto/cc/bcc
@@ -34,10 +34,10 @@ CFLAGS="$CFLAGS -q"
|
||||
|
||||
|
||||
# precompiled headers
|
||||
CORE_DEPS="$CORE_DEPS $OBJS/ngx_config.csm"
|
||||
NGX_PCH="$OBJS/ngx_config.csm"
|
||||
NGX_BUILD_PCH="-H=$OBJS/ngx_config.csm"
|
||||
NGX_USE_PCH="-Hu -H=$OBJS/ngx_config.csm"
|
||||
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.csm"
|
||||
NGX_PCH="$NGX_OBJS/ngx_config.csm"
|
||||
NGX_BUILD_PCH="-H=$NGX_OBJS/ngx_config.csm"
|
||||
NGX_USE_PCH="-Hu -H=$NGX_OBJS/ngx_config.csm"
|
||||
|
||||
|
||||
# Win32 GUI mode application
|
||||
@@ -45,11 +45,11 @@ LINK="\$(CC) -laa"
|
||||
|
||||
|
||||
# the resource file
|
||||
NGX_RES="$OBJS/nginx.res"
|
||||
NGX_RCC="brcc32 -fo$OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC"
|
||||
NGX_RES="$NGX_OBJS/nginx.res"
|
||||
NGX_RCC="brcc32 -fo$NGX_OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC"
|
||||
# the pragma allows to link the resource file using bcc32 and
|
||||
# to avoid the direct ilink32 calling and the c0w32.obj's WinMain/main problem
|
||||
NGX_PRAGMA="#pragma resource \"$OBJS/nginx.res\""
|
||||
NGX_PRAGMA="#pragma resource \"$NGX_OBJS/nginx.res\""
|
||||
|
||||
|
||||
ngx_include_opt="-I"
|
||||
|
||||
10
auto/cc/conf
10
auto/cc/conf
@@ -92,11 +92,11 @@ fi
|
||||
CFLAGS="$CFLAGS $NGX_CC_OPT"
|
||||
|
||||
|
||||
if [ "$PLATFORM" != win32 ]; then
|
||||
if [ "$NGX_PLATFORM" != win32 ]; then
|
||||
|
||||
if test -n "$NGX_LD_OPT"; then
|
||||
ngx_feature=--with-ld-opt=\"$NGX_LD_OPT\"
|
||||
ngx_feature_name="DUMMY"
|
||||
ngx_feature_name=
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs=
|
||||
ngx_feature_libs=
|
||||
@@ -111,7 +111,7 @@ if [ "$PLATFORM" != win32 ]; then
|
||||
fi
|
||||
|
||||
ngx_feature="gcc variadic macros"
|
||||
ngx_feature_name="HAVE_GCC_VARIADIC_MACROS"
|
||||
ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS"
|
||||
ngx_feature_run=yes
|
||||
ngx_feature_incs="#include <stdio.h>
|
||||
#define var(dummy, args...) sprintf(args)"
|
||||
@@ -123,7 +123,7 @@ if [ "$PLATFORM" != win32 ]; then
|
||||
|
||||
|
||||
ngx_feature="C99 variadic macros"
|
||||
ngx_feature_name="HAVE_C99_VARIADIC_MACROS"
|
||||
ngx_feature_name="NGX_HAVE_C99_VARIADIC_MACROS"
|
||||
ngx_feature_run=yes
|
||||
ngx_feature_incs="#include <stdio.h>
|
||||
#define var(dummy, ...) sprintf(__VA_ARGS__)"
|
||||
@@ -135,7 +135,7 @@ if [ "$PLATFORM" != win32 ]; then
|
||||
|
||||
|
||||
# ngx_feature="inline"
|
||||
# ngx_feature_name="DUMMY"
|
||||
# ngx_feature_name=
|
||||
# ngx_feature_run=no
|
||||
# ngx_feature_incs="int inline f(void) { return 1 }"
|
||||
# ngx_feature_libs=
|
||||
|
||||
@@ -18,7 +18,7 @@ CFLAGS="$CFLAGS -Ob2"
|
||||
IPO="-ipo -ipo_obj"
|
||||
CFLAGS="$CFLAGS $IPO"
|
||||
CORE_LINK="$CORE_LINK $IPO"
|
||||
CORE_LINK="$CORE_LINK -opt_report_file=$OBJS/opt_report_file"
|
||||
CORE_LINK="$CORE_LINK -opt_report_file=$NGX_OBJS/opt_report_file"
|
||||
|
||||
case $CPU in
|
||||
pentium)
|
||||
|
||||
10
auto/cc/msvc
10
auto/cc/msvc
@@ -77,15 +77,15 @@ CORE_LINK="$CORE_LINK -debug -debugtype:coff"
|
||||
|
||||
# precompiled headers
|
||||
if [ $NGX_CC_NAME != msvc7 ]; then
|
||||
CORE_DEPS="$CORE_DEPS $OBJS/ngx_config.pch"
|
||||
NGX_PCH="$OBJS/ngx_config.pch"
|
||||
NGX_BUILD_PCH="-Ycngx_config.h -Fp$OBJS/ngx_config.pch"
|
||||
NGX_USE_PCH="-Yungx_config.h -Fp$OBJS/ngx_config.pch"
|
||||
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.pch"
|
||||
NGX_PCH="$NGX_OBJS/ngx_config.pch"
|
||||
NGX_BUILD_PCH="-Ycngx_config.h -Fp$NGX_OBJS/ngx_config.pch"
|
||||
NGX_USE_PCH="-Yungx_config.h -Fp$NGX_OBJS/ngx_config.pch"
|
||||
fi
|
||||
|
||||
|
||||
# the resource file
|
||||
NGX_RES="$OBJS/nginx.res"
|
||||
NGX_RES="$NGX_OBJS/nginx.res"
|
||||
NGX_RCC="rc -fo$NGX_RES \$(CORE_INCS) $NGX_WIN32_RC"
|
||||
CORE_LINK="$NGX_RES $CORE_LINK"
|
||||
|
||||
|
||||
11
auto/cc/owc
11
auto/cc/owc
@@ -63,10 +63,10 @@ CFLAGS="$CFLAGS -zq"
|
||||
|
||||
|
||||
# the precompiled headers
|
||||
CORE_DEPS="$CORE_DEPS $OBJS/ngx_config.pch"
|
||||
NGX_PCH="$OBJS/ngx_config.pch"
|
||||
NGX_BUILD_PCH="-fhq=$OBJS/ngx_config.pch"
|
||||
NGX_USE_PCH="-fh=$OBJS/ngx_config.pch"
|
||||
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.pch"
|
||||
NGX_PCH="$NGX_OBJS/ngx_config.pch"
|
||||
NGX_BUILD_PCH="-fhq=$NGX_OBJS/ngx_config.pch"
|
||||
NGX_USE_PCH="-fh=$NGX_OBJS/ngx_config.pch"
|
||||
|
||||
|
||||
LINK="\$(CC)"
|
||||
@@ -76,7 +76,8 @@ CORE_LINK="$CORE_LINK -l=nt_win"
|
||||
|
||||
|
||||
# the resource file
|
||||
NGX_RCC="wrc \$(CORE_INCS) -fo=$OBJS/nginx.res $NGX_WIN32_RC $OBJS/nginx.exe"
|
||||
NGX_RCC="wrc \$(CORE_INCS) -fo=$NGX_OBJS/nginx.res "
|
||||
NGX_RCC="$NGX_RCC $NGX_WIN32_RC $NGX_OBJS/nginx.exe"
|
||||
|
||||
|
||||
ngx_include_opt="-i="
|
||||
|
||||
24
auto/configure
vendored
24
auto/configure
vendored
@@ -7,26 +7,26 @@
|
||||
. auto/init
|
||||
. auto/sources
|
||||
|
||||
test -d $OBJS || mkdir $OBJS
|
||||
test -d $NGX_OBJS || mkdir $NGX_OBJS
|
||||
|
||||
echo > $NGX_AUTO_HEADERS_H
|
||||
echo > $NGX_AUTO_CONFIG_H
|
||||
echo > $NGX_AUTOCONF_ERR
|
||||
|
||||
|
||||
if [ $DEBUG = YES ]; then
|
||||
if [ $NGX_DEBUG = YES ]; then
|
||||
have=NGX_DEBUG . auto/have
|
||||
fi
|
||||
|
||||
|
||||
if [ "$PLATFORM" != win32 ]; then
|
||||
if [ "$NGX_PLATFORM" != win32 ]; then
|
||||
. auto/headers
|
||||
fi
|
||||
|
||||
. auto/cc/conf
|
||||
. auto/os/conf
|
||||
|
||||
if [ "$PLATFORM" != win32 ]; then
|
||||
if [ "$NGX_PLATFORM" != win32 ]; then
|
||||
. auto/threads
|
||||
fi
|
||||
|
||||
@@ -37,21 +37,21 @@ fi
|
||||
. auto/lib/make
|
||||
. auto/install
|
||||
|
||||
if [ "$PLATFORM" != win32 ]; then
|
||||
if [ "$NGX_PLATFORM" != win32 ]; then
|
||||
. auto/unix
|
||||
fi
|
||||
|
||||
# STUB
|
||||
. auto/stubs
|
||||
|
||||
have=NGX_PREFIX value="\"$PREFIX/\"" . auto/define
|
||||
have=NGX_SBIN_PATH value="\"$SBIN_PATH\"" . auto/define
|
||||
have=NGX_CONF_PATH value="\"$CONF_PATH\"" . auto/define
|
||||
have=NGX_PID_PATH value="\"$PID_PATH\"" . auto/define
|
||||
if [ ".$ERROR_LOG_PATH" != "." ]; then
|
||||
have=NGX_ERROR_LOG_PATH value="\"$ERROR_LOG_PATH\"" . auto/define
|
||||
have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
|
||||
have=NGX_SBIN_PATH value="\"$NGX_SBIN_PATH\"" . auto/define
|
||||
have=NGX_CONF_PATH value="\"$NGX_CONF_PATH\"" . auto/define
|
||||
have=NGX_PID_PATH value="\"$NGX_PID_PATH\"" . auto/define
|
||||
if test -n "$NGX_ERROR_LOG_PATH"; then
|
||||
have=NGX_ERROR_LOG_PATH value="\"$NGX_ERROR_LOG_PATH\"" . auto/define
|
||||
fi
|
||||
have=NGX_HTTP_LOG_PATH value="\"$HTTP_LOG_PATH\"" . auto/define
|
||||
have=NGX_HTTP_LOG_PATH value="\"$NGX_HTTP_LOG_PATH\"" . auto/define
|
||||
|
||||
have=NGX_USER value="\"$NGX_USER\"" . auto/define
|
||||
have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define
|
||||
|
||||
@@ -25,7 +25,7 @@ eval "${CC} -o $NGX_AUTOTEST $NGX_AUTOTEST.c >> $NGX_ERR 2>&1"
|
||||
if [ -x $NGX_AUTOTEST ]; then
|
||||
if $NGX_AUTOTEST 2>&1 > /dev/null; then
|
||||
echo " little endianess"
|
||||
have=HAVE_LITTLE_ENDIAN . auto/have
|
||||
have=NGX_HAVE_LITTLE_ENDIAN . auto/have
|
||||
else
|
||||
echo " big endianess"
|
||||
fi
|
||||
|
||||
14
auto/feature
14
auto/feature
@@ -14,9 +14,7 @@ END
|
||||
ngx_found=no
|
||||
|
||||
if test -n "$ngx_feature_name"; then
|
||||
ngx_have_feature=`echo NGX_$ngx_feature_name | tr '[a-z]' '[A-Z]'`
|
||||
# STUB
|
||||
ngx_have_feature0=`echo HAVE_$ngx_feature_name | tr '[a-z]' '[A-Z]'`
|
||||
ngx_have_feature=`echo $ngx_feature_name | tr '[a-z]' '[A-Z]'`
|
||||
fi
|
||||
|
||||
cat << END > $NGX_AUTOTEST.c
|
||||
@@ -51,11 +49,6 @@ if [ -x $NGX_AUTOTEST ]; then
|
||||
have=$ngx_have_feature . auto/have
|
||||
fi
|
||||
|
||||
#STUB
|
||||
if test -n "$ngx_feature_name"; then
|
||||
have=$ngx_have_feature0 . auto/have
|
||||
fi
|
||||
|
||||
else
|
||||
echo " found but is not working"
|
||||
fi
|
||||
@@ -68,11 +61,6 @@ if [ -x $NGX_AUTOTEST ]; then
|
||||
have=$ngx_have_feature . auto/have
|
||||
fi
|
||||
|
||||
#STUB
|
||||
if test -n "$ngx_feature_name"; then
|
||||
have=$ngx_have_feature0 . auto/have
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
43
auto/func
43
auto/func
@@ -1,43 +0,0 @@
|
||||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo $ngx_n "checking for $ngx_func ..." $ngx_c
|
||||
echo >> $NGX_ERR
|
||||
echo "checking for $ngx_func" >> $NGX_ERR
|
||||
|
||||
ngx_found=no
|
||||
|
||||
func=`echo $ngx_func | sed -e 's/()$//' | tr '[a-z]' '[A-Z]'`
|
||||
|
||||
cat << END > $NGX_AUTOTEST.c
|
||||
|
||||
#include <sys/types.h>
|
||||
$NGX_UNISTD_H
|
||||
$ngx_func_inc
|
||||
|
||||
int main() {
|
||||
$ngx_func_test;
|
||||
return 0;
|
||||
}
|
||||
|
||||
END
|
||||
|
||||
test="$CC_WARN $CC_TEST_FLAGS -o $NGX_AUTOTEST $NGX_AUTOTEST.c $ngx_func_libs"
|
||||
eval "$test >> $NGX_ERR 2>&1"
|
||||
|
||||
if [ -x $NGX_AUTOTEST ]; then
|
||||
echo " found"
|
||||
have=HAVE_$func . auto/have
|
||||
ngx_found=yes
|
||||
|
||||
else
|
||||
echo " not found"
|
||||
echo "---------" >> $NGX_ERR
|
||||
cat $NGX_AUTOTEST.c >> $NGX_ERR
|
||||
echo "---------" >> $NGX_ERR
|
||||
echo $test >> $NGX_ERR
|
||||
echo "---------" >> $NGX_ERR
|
||||
fi
|
||||
|
||||
rm $NGX_AUTOTEST*
|
||||
13
auto/init
13
auto/init
@@ -12,9 +12,8 @@ NGX_AUTOTEST=$NGX_OBJS/autotest
|
||||
NGX_AUTOCONF_ERR=$NGX_OBJS/autoconf.err
|
||||
|
||||
# STUBs
|
||||
OBJS=$NGX_OBJS
|
||||
NGX_ERR=$OBJS/autoconf.err
|
||||
MAKEFILE=$OBJS/Makefile
|
||||
NGX_ERR=$NGX_OBJS/autoconf.err
|
||||
MAKEFILE=$NGX_OBJS/Makefile
|
||||
|
||||
|
||||
NGX_PCH=
|
||||
@@ -54,9 +53,9 @@ clean:
|
||||
rm -rf Makefile $NGX_OBJS
|
||||
|
||||
upgrade:
|
||||
$SBIN_PATH -t
|
||||
kill -USR2 \`cat $PID_PATH\`
|
||||
$NGX_SBIN_PATH -t
|
||||
kill -USR2 \`cat $NGX_PID_PATH\`
|
||||
sleep 1
|
||||
test -f $PID_PATH.newbin
|
||||
kill -WINCH \`cat $PID_PATH\`
|
||||
test -f $NGX_PID_PATH.newbin
|
||||
kill -WINCH \`cat $NGX_PID_PATH\`
|
||||
END
|
||||
|
||||
40
auto/install
40
auto/install
@@ -2,40 +2,40 @@
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
cat << END >> $MAKEFILE
|
||||
cat << END >> $NGX_MAKEFILE
|
||||
|
||||
install:
|
||||
test -d $PREFIX || mkdir -p $PREFIX
|
||||
test -d $NGX_PREFIX || mkdir -p $NGX_PREFIX
|
||||
|
||||
test -d `dirname $SBIN_PATH` || mkdir -p `dirname $SBIN_PATH`
|
||||
test ! -f $SBIN_PATH || mv $SBIN_PATH $SBIN_PATH.old
|
||||
cp $OBJS/nginx $SBIN_PATH
|
||||
test -d `dirname $NGX_SBIN_PATH` || mkdir -p `dirname $NGX_SBIN_PATH`
|
||||
test ! -f $NGX_SBIN_PATH || mv $NGX_SBIN_PATH $NGX_SBIN_PATH.old
|
||||
cp $NGX_OBJS/nginx $NGX_SBIN_PATH
|
||||
|
||||
test -d `dirname $CONF_PATH` || mkdir -p `dirname $CONF_PATH`
|
||||
test -d `dirname $NGX_CONF_PATH` || mkdir -p `dirname $NGX_CONF_PATH`
|
||||
|
||||
cp conf/koi-win `dirname $CONF_PATH`
|
||||
cp conf/koi-win `dirname $NGX_CONF_PATH`
|
||||
|
||||
test -f `dirname $CONF_PATH`/mime.types || \
|
||||
cp conf/mime.types `dirname $CONF_PATH`/mime.types
|
||||
cp conf/mime.types `dirname $CONF_PATH`/mime.types.default
|
||||
test -f `dirname $NGX_CONF_PATH`/mime.types || \
|
||||
cp conf/mime.types `dirname $NGX_CONF_PATH`/mime.types
|
||||
cp conf/mime.types `dirname $NGX_CONF_PATH`/mime.types.default
|
||||
|
||||
test -f $CONF_PATH || cp conf/nginx.conf $CONF_PATH
|
||||
cp conf/nginx.conf `dirname $CONF_PATH`/nginx.conf.default
|
||||
test -f $NGX_CONF_PATH || cp conf/nginx.conf $NGX_CONF_PATH
|
||||
cp conf/nginx.conf `dirname $NGX_CONF_PATH`/nginx.conf.default
|
||||
|
||||
test -d `dirname $PID_PATH` || mkdir -p `dirname $PID_PATH`
|
||||
test -d `dirname $NGX_PID_PATH` || mkdir -p `dirname $NGX_PID_PATH`
|
||||
|
||||
test -d `dirname $HTTP_LOG_PATH` || mkdir -p `dirname $HTTP_LOG_PATH`
|
||||
test -d `dirname $NGX_HTTP_LOG_PATH` || \
|
||||
mkdir -p `dirname $NGX_HTTP_LOG_PATH`
|
||||
|
||||
test -d $PREFIX/html || cp -r html $PREFIX
|
||||
|
||||
#test -d $PREFIX/temp || mkdir -p $PREFIX/temp
|
||||
test -d $NGX_PREFIX/html || cp -r html $NGX_PREFIX
|
||||
END
|
||||
|
||||
|
||||
if [ ".$ERROR_LOG_PATH" != "." ]; then
|
||||
cat << END >> $MAKEFILE
|
||||
if test -n "$NGX_ERROR_LOG_PATH"; then
|
||||
cat << END >> $NGX_MAKEFILE
|
||||
|
||||
test -d `dirname $ERROR_LOG_PATH` || mkdir -p `dirname $ERROR_LOG_PATH`
|
||||
test -d `dirname $NGX_ERROR_LOG_PATH` || \
|
||||
mkdir -p `dirname $NGX_ERROR_LOG_PATH`
|
||||
END
|
||||
|
||||
fi
|
||||
|
||||
@@ -7,7 +7,7 @@ if [ $MD5 != NONE ]; then
|
||||
if grep MD5_Init $MD5/md5.h >/dev/null; then
|
||||
# OpenSSL md5
|
||||
OPENSSL_MD5=YES
|
||||
have=HAVE_OPENSSL_MD5 . auto/have
|
||||
have=NGX_HAVE_OPENSSL_MD5 . auto/have
|
||||
else
|
||||
# rsaref md5
|
||||
OPENSSL_MD5=NO
|
||||
@@ -43,13 +43,13 @@ if [ $MD5 != NONE ]; then
|
||||
|
||||
else
|
||||
|
||||
if [ $PLATFORM != win32 ]; then
|
||||
if [ $NGX_PLATFORM != win32 ]; then
|
||||
MD5=NO
|
||||
|
||||
# Solaris 8/9
|
||||
|
||||
ngx_feature="rsaref md5 library"
|
||||
ngx_feature_name="rsaref_md5"
|
||||
ngx_feature_name=
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <md5.h>"
|
||||
ngx_feature_libs="-lmd5"
|
||||
@@ -66,7 +66,7 @@ else
|
||||
# FreeBSD
|
||||
|
||||
ngx_feature="rsaref md library"
|
||||
ngx_feature_name="rsaref_md5"
|
||||
ngx_feature_name=
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <md5.h>"
|
||||
ngx_feature_libs="-lmd"
|
||||
@@ -87,7 +87,7 @@ else
|
||||
# OpenSSL crypto library
|
||||
|
||||
ngx_feature="OpenSSL md5 crypto library"
|
||||
ngx_feature_name="OpenSSL_md5"
|
||||
ngx_feature_name="NGX_OPENSSL_MD5"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <openssl/md5.h>"
|
||||
ngx_feature_libs="-lcrypto"
|
||||
@@ -98,7 +98,7 @@ else
|
||||
|
||||
|
||||
if [ $ngx_found = yes ]; then
|
||||
have=HAVE_OPENSSL_MD5_H . auto/have
|
||||
have=NGX_HAVE_OPENSSL_MD5_H . auto/have
|
||||
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
|
||||
MD5=YES
|
||||
MD5_LIB=crypto
|
||||
|
||||
@@ -25,7 +25,7 @@ esac
|
||||
done=NO
|
||||
|
||||
|
||||
case $PLATFORM in
|
||||
case $NGX_PLATFORM in
|
||||
|
||||
win32)
|
||||
cp auto/lib/md5/$ngx_makefile $MD5
|
||||
|
||||
@@ -18,11 +18,11 @@ if [ $OPENSSL != NONE ]; then
|
||||
|
||||
else
|
||||
|
||||
if [ $PLATFORM != win32 ]; then
|
||||
if [ $NGX_PLATFORM != win32 ]; then
|
||||
OPENSSL=NO
|
||||
|
||||
ngx_feature="OpenSSL library"
|
||||
ngx_feature_name="OpenSSL"
|
||||
ngx_feature_name="NGX_OPENSSL"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <openssl/ssl.h>"
|
||||
ngx_feature_libs="-lssl -lcrypto"
|
||||
@@ -30,7 +30,6 @@ else
|
||||
. auto/feature
|
||||
|
||||
if [ $ngx_found = yes ]; then
|
||||
have=NGX_OPENSSL . auto/have
|
||||
CORE_DEPS="$CORE_DEPS $OPENSSL_DEPS"
|
||||
CORE_SRCS="$CORE_SRCS $OPENSSL_SRCS"
|
||||
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
case $PLATFORM in
|
||||
case $NGX_PLATFORM in
|
||||
*)
|
||||
echo "$OPENSSL/libssl.a:" >> $MAKEFILE
|
||||
echo " cd $OPENSSL \\" >> $MAKEFILE
|
||||
|
||||
@@ -42,14 +42,14 @@ if [ $PCRE != NONE ]; then
|
||||
|
||||
else
|
||||
|
||||
if [ $PLATFORM != win32 ]; then
|
||||
if [ $NGX_PLATFORM != win32 ]; then
|
||||
PCRE=NO
|
||||
|
||||
# FreeBSD PCRE port requires --with-cc-opt="-I /usr/local/include"
|
||||
# --with-ld-opt="-L /usr/local/lib"
|
||||
|
||||
ngx_feature="PCRE library"
|
||||
ngx_feature_name="PCRE"
|
||||
ngx_feature_name="NGX_PCRE"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <pcre.h>"
|
||||
ngx_feature_libs="-lpcre"
|
||||
|
||||
@@ -22,7 +22,7 @@ case "$NGX_CC_NAME" in
|
||||
esac
|
||||
|
||||
|
||||
case $PLATFORM in
|
||||
case $NGX_PLATFORM in
|
||||
|
||||
win32)
|
||||
cp auto/lib/pcre/patch.pcre.in $PCRE
|
||||
|
||||
@@ -37,13 +37,13 @@ if [ $ZLIB != NONE ]; then
|
||||
|
||||
else
|
||||
|
||||
if [ $PLATFORM != win32 ]; then
|
||||
if [ $NGX_PLATFORM != win32 ]; then
|
||||
ZLIB=NO
|
||||
|
||||
# FreeBSD, Solaris, Linux
|
||||
|
||||
ngx_feature="zlib library"
|
||||
ngx_feature_name="zlib"
|
||||
ngx_feature_name=
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <zlib.h>"
|
||||
ngx_feature_libs="-lz"
|
||||
|
||||
@@ -26,7 +26,7 @@ esac
|
||||
done=NO
|
||||
|
||||
|
||||
case $PLATFORM in
|
||||
case $NGX_PLATFORM in
|
||||
|
||||
win32)
|
||||
cp auto/lib/zlib/$ngx_makefile $ZLIB
|
||||
|
||||
19
auto/make
19
auto/make
@@ -2,10 +2,11 @@
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
mkdir -p $OBJS/src/core $OBJS/src/event $OBJS/src/event/modules \
|
||||
$OBJS/src/os/unix $OBJS/src/os/win32 \
|
||||
$OBJS/src/http $OBJS/src/http/modules $OBJS/src/http/modules/proxy \
|
||||
$OBJS/src/imap
|
||||
mkdir -p $NGX_OBJS/src/core $NGX_OBJS/src/event $NGX_OBJS/src/event/modules \
|
||||
$NGX_OBJS/src/os/unix $NGX_OBJS/src/os/win32 \
|
||||
$NGX_OBJS/src/http $NGX_OBJS/src/http/modules \
|
||||
$NGX_OBJS/src/http/modules/proxy \
|
||||
$NGX_OBJS/src/imap
|
||||
|
||||
|
||||
ngx_objs_dir=$NGX_OBJS$ngx_regex_dirsep
|
||||
@@ -33,7 +34,7 @@ fi
|
||||
|
||||
# ALL_INCS, required by OpenWatcom C precompiled headers
|
||||
|
||||
ngx_incs=`echo $CORE_INCS $OBJS $HTTP_INCS $IMAP_INCS\
|
||||
ngx_incs=`echo $CORE_INCS $NGX_OBJS $HTTP_INCS $IMAP_INCS\
|
||||
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \
|
||||
-e "s/\//$ngx_regex_dirsep/g"`
|
||||
|
||||
@@ -53,7 +54,7 @@ ngx_deps=`echo $CORE_DEPS $NGX_AUTO_CONFIG_H $NGX_PCH \
|
||||
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \
|
||||
-e "s/\//$ngx_regex_dirsep/g"`
|
||||
|
||||
ngx_incs=`echo $CORE_INCS $OBJS \
|
||||
ngx_incs=`echo $CORE_INCS $NGX_OBJS \
|
||||
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \
|
||||
-e "s/\//$ngx_regex_dirsep/g"`
|
||||
|
||||
@@ -287,13 +288,13 @@ fi
|
||||
# the precompiled headers
|
||||
|
||||
if test -n "$NGX_PCH"; then
|
||||
echo "#include <ngx_config.h>" > $OBJS/ngx_pch.c
|
||||
echo "#include <ngx_config.h>" > $NGX_OBJS/ngx_pch.c
|
||||
|
||||
ngx_pch="src/core/ngx_config.h $OS_CONFIG $OBJS/ngx_auto_config.h"
|
||||
ngx_pch="src/core/ngx_config.h $OS_CONFIG $NGX_OBJS/ngx_auto_config.h"
|
||||
ngx_pch=`echo "$NGX_PCH: $ngx_pch" | sed -e "s/\//$ngx_regex_dirsep/g"`
|
||||
|
||||
ngx_src="\$(CC) \$(CFLAGS) $NGX_BUILD_PCH $ngx_compile_opt \$(ALL_INCS)"
|
||||
ngx_src="$ngx_src $ngx_objout$OBJS/ngx_pch.obj $OBJS/ngx_pch.c"
|
||||
ngx_src="$ngx_src $ngx_objout$NGX_OBJS/ngx_pch.obj $NGX_OBJS/ngx_pch.c"
|
||||
ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"`
|
||||
|
||||
cat << END >> $NGX_MAKEFILE
|
||||
|
||||
29
auto/modules
29
auto/modules
@@ -7,7 +7,7 @@ if [ $EVENT_SELECT = NO -a $EVENT_FOUND = NO ]; then
|
||||
fi
|
||||
|
||||
if [ $EVENT_SELECT = YES ]; then
|
||||
have=HAVE_SELECT . auto/have
|
||||
have=NGX_HAVE_SELECT . auto/have
|
||||
CORE_SRCS="$CORE_SRCS $SELECT_SRCS"
|
||||
EVENT_MODULES="$EVENT_MODULES $SELECT_MODULE"
|
||||
fi
|
||||
@@ -18,29 +18,29 @@ if [ $EVENT_POLL = NO -a $EVENT_FOUND = NO ]; then
|
||||
fi
|
||||
|
||||
if [ $EVENT_POLL = YES ]; then
|
||||
have=HAVE_POLL . auto/have
|
||||
have=NGX_HAVE_POLL . auto/have
|
||||
CORE_SRCS="$CORE_SRCS $POLL_SRCS"
|
||||
EVENT_MODULES="$EVENT_MODULES $POLL_MODULE"
|
||||
fi
|
||||
|
||||
|
||||
if [ $TEST_BUILD_DEVPOLL = YES ]; then
|
||||
have=HAVE_DEVPOLL . auto/have
|
||||
have=TEST_BUILD_DEVPOLL . auto/have
|
||||
if [ $NGX_TEST_BUILD_DEVPOLL = YES ]; then
|
||||
have=NGX_HAVE_DEVPOLL . auto/have
|
||||
have=NGX_TEST_BUILD_DEVPOLL . auto/have
|
||||
EVENT_MODULES="$EVENT_MODULES $DEVPOLL_MODULE"
|
||||
CORE_SRCS="$CORE_SRCS $DEVPOLL_SRCS"
|
||||
fi
|
||||
|
||||
if [ $TEST_BUILD_EPOLL = YES ]; then
|
||||
have=HAVE_EPOLL . auto/have
|
||||
have=TEST_BUILD_EPOLL . auto/have
|
||||
if [ $NGX_TEST_BUILD_EPOLL = YES ]; then
|
||||
have=NGX_HAVE_EPOLL . auto/have
|
||||
have=NGX_TEST_BUILD_EPOLL . auto/have
|
||||
EVENT_MODULES="$EVENT_MODULES $EPOLL_MODULE"
|
||||
CORE_SRCS="$CORE_SRCS $EPOLL_SRCS"
|
||||
fi
|
||||
|
||||
if [ $TEST_BUILD_RTSIG = YES ]; then
|
||||
have=HAVE_RTSIG . auto/have
|
||||
have=TEST_BUILD_RTSIG . auto/have
|
||||
if [ $NGX_TEST_BUILD_RTSIG = YES ]; then
|
||||
have=NGX_HAVE_RTSIG . auto/have
|
||||
have=NGX_TEST_BUILD_RTSIG . auto/have
|
||||
EVENT_MODULES="$EVENT_MODULES $RTSIG_MODULE"
|
||||
CORE_SRCS="$CORE_SRCS $RTSIG_SRCS"
|
||||
fi
|
||||
@@ -135,8 +135,11 @@ if [ $HTTP_PROXY = YES ]; then
|
||||
HTTP_SRCS="$HTTP_SRCS $HTTP_PROXY_SRCS"
|
||||
fi
|
||||
|
||||
if [ -r $OBJS/auto ]; then
|
||||
. $OBJS/auto
|
||||
# STUB
|
||||
#HTTP_SRCS="$HTTP_SRCS $HTPP_FILE_CACHE_SRCS"
|
||||
|
||||
if [ -r $NGX_OBJS/auto ]; then
|
||||
. $NGX_OBJS/auto
|
||||
fi
|
||||
|
||||
modules="$CORE_MODULES $EVENT_MODULES"
|
||||
|
||||
84
auto/options
84
auto/options
@@ -4,29 +4,29 @@
|
||||
|
||||
help=no
|
||||
|
||||
PREFIX=
|
||||
SBIN_PATH=
|
||||
CONF_PATH=
|
||||
ERROR_LOG_PATH=
|
||||
PID_PATH=
|
||||
NGX_PREFIX=
|
||||
NGX_SBIN_PATH=
|
||||
NGX_CONF_PATH=
|
||||
NGX_ERROR_LOG_PATH=
|
||||
NGX_PID_PATH=
|
||||
NGX_USER=
|
||||
NGX_GROUP=
|
||||
HTTP_LOG_PATH=
|
||||
NGX_HTTP_LOG_PATH=
|
||||
|
||||
CC=${CC:-gcc}
|
||||
CPP=
|
||||
NGX_OBJS=objs
|
||||
|
||||
DEBUG=NO
|
||||
NGX_DEBUG=NO
|
||||
NGX_CC_OPT=
|
||||
NGX_LD_OPT=
|
||||
CPU=NO
|
||||
|
||||
TEST_BUILD_DEVPOLL=NO
|
||||
TEST_BUILD_EPOLL=NO
|
||||
TEST_BUILD_RTSIG=NO
|
||||
NGX_TEST_BUILD_DEVPOLL=NO
|
||||
NGX_TEST_BUILD_EPOLL=NO
|
||||
NGX_TEST_BUILD_RTSIG=NO
|
||||
|
||||
PLATFORM=
|
||||
NGX_PLATFORM=
|
||||
NGX_WINE=
|
||||
|
||||
EVENT_FOUND=NO
|
||||
@@ -52,7 +52,7 @@ HTTP_PROXY=YES
|
||||
|
||||
IMAP=NO
|
||||
|
||||
MODULES=
|
||||
NGX_MODULES=
|
||||
|
||||
USE_PCRE=NO
|
||||
PCRE=NONE
|
||||
@@ -82,15 +82,15 @@ do
|
||||
case "$option" in
|
||||
--help) help=yes ;;
|
||||
|
||||
--prefix=*) PREFIX="$value" ;;
|
||||
--sbin-path=*) SBIN_PATH="$value" ;;
|
||||
--conf-path=*) CONF_PATH="$value" ;;
|
||||
--error-log-path=*) ERROR_LOG_PATH="$value" ;;
|
||||
--pid-path=*) PID_PATH="$value" ;;
|
||||
--prefix=*) NGX_PREFIX="$value" ;;
|
||||
--sbin-path=*) NGX_SBIN_PATH="$value" ;;
|
||||
--conf-path=*) NGX_CONF_PATH="$value" ;;
|
||||
--error-log-path=*) NGX_ERROR_LOG_PATH="$value";;
|
||||
--pid-path=*) NGX_PID_PATH="$value" ;;
|
||||
--user=*) NGX_USER="$value" ;;
|
||||
--group=*) NGX_GROUP="$value" ;;
|
||||
|
||||
--crossbuild=*) PLATFORM="$value" ;;
|
||||
--crossbuild=*) NGX_PLATFORM="$value" ;;
|
||||
|
||||
--builddir=*) NGX_OBJS="$value" ;;
|
||||
|
||||
@@ -105,7 +105,7 @@ do
|
||||
--with-threads) USE_THREADS="pthreads" ;;
|
||||
|
||||
--without-http) HTTP=NO ;;
|
||||
--http-log-path=*) HTTP_LOG_PATH="$value" ;;
|
||||
--http-log-path=*) NGX_HTTP_LOG_PATH="$value" ;;
|
||||
|
||||
--with-http_ssl_module) HTTP_SSL=YES ;;
|
||||
--without-http_charset_module) HTTP_CHARSET=NO ;;
|
||||
@@ -127,7 +127,7 @@ do
|
||||
--with-cc-opt=*) NGX_CC_OPT="$value" ;;
|
||||
--with-ld-opt=*) NGX_LD_OPT="$value" ;;
|
||||
--with-cpu-opt=*) CPU="$value" ;;
|
||||
--with-debug) DEBUG=YES ;;
|
||||
--with-debug) NGX_DEBUG=YES ;;
|
||||
|
||||
--without-pcre) USE_PCRE=DISABLED ;;
|
||||
--with-pcre=*) PCRE="$value" ;;
|
||||
@@ -143,9 +143,9 @@ do
|
||||
--with-zlib-opt=*) ZLIB_OPT="$value" ;;
|
||||
--with-zlib-asm=*) ZLIB_ASM="$value" ;;
|
||||
|
||||
--test-build-devpoll) TEST_BUILD_DEVPOLL=YES ;;
|
||||
--test-build-epoll) TEST_BUILD_EPOLL=YES ;;
|
||||
--test-build-rtsig) TEST_BUILD_RTSIG=YES ;;
|
||||
--test-build-devpoll) NGX_TEST_BUILD_DEVPOLL=YES ;;
|
||||
--test-build-epoll) NGX_TEST_BUILD_EPOLL=YES ;;
|
||||
--test-build-rtsig) NGX_TEST_BUILD_RTSIG=YES ;;
|
||||
|
||||
*)
|
||||
echo "$0: error: invalid option \"$option\""
|
||||
@@ -202,13 +202,13 @@ if [ $HTTP = NO ]; then
|
||||
fi
|
||||
|
||||
|
||||
if [ ".$PLATFORM" = ".win32" ]; then
|
||||
if [ ".$NGX_PLATFORM" = ".win32" ]; then
|
||||
NGX_WINE=$WINE
|
||||
fi
|
||||
|
||||
|
||||
if test -z "$PREFIX"; then
|
||||
PREFIX=/usr/local/nginx
|
||||
if test -z "$NGX_PREFIX"; then
|
||||
NGX_PREFIX=/usr/local/nginx
|
||||
fi
|
||||
|
||||
|
||||
@@ -217,75 +217,75 @@ if test -z "$NGX_GROUP"; then
|
||||
fi
|
||||
|
||||
|
||||
case ".$SBIN_PATH" in
|
||||
case ".$NGX_SBIN_PATH" in
|
||||
./*)
|
||||
;;
|
||||
|
||||
.)
|
||||
SBIN_PATH=$PREFIX/sbin/nginx
|
||||
NGX_SBIN_PATH=$NGX_PREFIX/sbin/nginx
|
||||
;;
|
||||
|
||||
*)
|
||||
SBIN_PATH=$PREFIX/$SBIN_PATH
|
||||
NGX_SBIN_PATH=$NGX_PREFIX/$NGX_SBIN_PATH
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
case ".$CONF_PATH" in
|
||||
case ".$NGX_CONF_PATH" in
|
||||
./*)
|
||||
;;
|
||||
|
||||
.)
|
||||
CONF_PATH=$PREFIX/conf/nginx.conf
|
||||
NGX_CONF_PATH=$NGX_PREFIX/conf/nginx.conf
|
||||
;;
|
||||
|
||||
*)
|
||||
CONF_PATH=$PREFIX/$CONF_PATH
|
||||
NGX_CONF_PATH=$NGX_PREFIX/$NGX_CONF_PATH
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
case ".$PID_PATH" in
|
||||
case ".$NGX_PID_PATH" in
|
||||
./*)
|
||||
;;
|
||||
|
||||
.)
|
||||
PID_PATH=$PREFIX/logs/nginx.pid
|
||||
NGX_PID_PATH=$NGX_PREFIX/logs/nginx.pid
|
||||
;;
|
||||
|
||||
*)
|
||||
PID_PATH=$PREFIX/$PID_PATH
|
||||
NGX_PID_PATH=$NGX_PREFIX/$NGX_PID_PATH
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
case ".$ERROR_LOG_PATH" in
|
||||
case ".$NGX_ERROR_LOG_PATH" in
|
||||
./*)
|
||||
;;
|
||||
|
||||
.)
|
||||
ERROR_LOG_PATH=$PREFIX/logs/error.log
|
||||
NGX_ERROR_LOG_PATH=$NGX_PREFIX/logs/error.log
|
||||
;;
|
||||
|
||||
.stderr)
|
||||
ERROR_LOG_PATH=
|
||||
NGX_ERROR_LOG_PATH=
|
||||
;;
|
||||
|
||||
*)
|
||||
ERROR_LOG_PATH=$PREFIX/$ERROR_LOG_PATH
|
||||
NGX_ERROR_LOG_PATH=$NGX_PREFIX/$NGX_ERROR_LOG_PATH
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
case ".$HTTP_LOG_PATH" in
|
||||
case ".$NGX_HTTP_LOG_PATH" in
|
||||
./*)
|
||||
;;
|
||||
|
||||
.)
|
||||
HTTP_LOG_PATH=$PREFIX/logs/access.log
|
||||
NGX_HTTP_LOG_PATH=$NGX_PREFIX/logs/access.log
|
||||
;;
|
||||
|
||||
*)
|
||||
HTTP_LOG_PATH=$PREFIX/$HTTP_LOG_PATH
|
||||
NGX_HTTP_LOG_PATH=$NGX_PREFIX/$NGX_HTTP_LOG_PATH
|
||||
;;
|
||||
esac
|
||||
|
||||
20
auto/os/conf
20
auto/os/conf
@@ -2,7 +2,7 @@
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
if [ ".$PLATFORM" = "." ]; then
|
||||
if test -z "$NGX_PLATFORM"; then
|
||||
echo "checking for OS"
|
||||
|
||||
SYSTEM=`uname -s 2>/dev/null`
|
||||
@@ -11,12 +11,12 @@ if [ ".$PLATFORM" = "." ]; then
|
||||
|
||||
echo " + $SYSTEM $RELEASE $MACHINE"
|
||||
|
||||
PLATFORM="$SYSTEM:$RELEASE:$MACHINE";
|
||||
NGX_PLATFORM="$SYSTEM:$RELEASE:$MACHINE";
|
||||
else
|
||||
echo "building for $PLATFORM"
|
||||
echo "building for $NGX_PLATFORM"
|
||||
fi
|
||||
|
||||
case $PLATFORM in
|
||||
case $NGX_PLATFORM in
|
||||
|
||||
FreeBSD:* | DragonFly:*)
|
||||
. auto/os/freebsd
|
||||
@@ -43,7 +43,7 @@ case $PLATFORM in
|
||||
esac
|
||||
|
||||
|
||||
if [ $PLATFORM != win32 ]; then
|
||||
if [ $NGX_PLATFORM != win32 ]; then
|
||||
|
||||
if test -z "$NGX_USER"; then
|
||||
NGX_USER=nobody
|
||||
@@ -52,7 +52,7 @@ if [ $PLATFORM != win32 ]; then
|
||||
|
||||
|
||||
ngx_feature="/dev/poll"
|
||||
ngx_feature_name="devpoll"
|
||||
ngx_feature_name="NGX_HAVE_DEVPOLL"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/devpoll.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -65,7 +65,6 @@ if [ $PLATFORM != win32 ]; then
|
||||
. auto/feature
|
||||
|
||||
if [ $ngx_found = yes ]; then
|
||||
have=HAVE_DEVPOLL . auto/have
|
||||
CORE_SRCS="$CORE_SRCS $DEVPOLL_SRCS"
|
||||
EVENT_MODULES="$EVENT_MODULES $DEVPOLL_MODULE"
|
||||
EVENT_FOUND=YES
|
||||
@@ -74,7 +73,7 @@ if [ $PLATFORM != win32 ]; then
|
||||
|
||||
if test -z "$NGX_KQUEUE_CHECKED"; then
|
||||
ngx_feature="kqueue"
|
||||
ngx_feature_name="kqueue"
|
||||
ngx_feature_name="NGX_HAVE_KQUEUE"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/event.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -83,14 +82,13 @@ if [ $PLATFORM != win32 ]; then
|
||||
|
||||
if [ $ngx_found = yes ]; then
|
||||
|
||||
have=HAVE_KQUEUE . auto/have
|
||||
have=HAVE_CLEAR_EVENT . auto/have
|
||||
have=NGX_HAVE_CLEAR_EVENT . auto/have
|
||||
EVENT_MODULES="$EVENT_MODULES $KQUEUE_MODULE"
|
||||
CORE_SRCS="$CORE_SRCS $KQUEUE_SRCS"
|
||||
EVENT_FOUND=YES
|
||||
|
||||
ngx_feature="kqueue's NOTE_LOWAT"
|
||||
ngx_feature_name="HAVE_LOWAT_EVENT"
|
||||
ngx_feature_name="NGX_HAVE_LOWAT_EVENT"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/event.h>"
|
||||
ngx_feature_libs=
|
||||
|
||||
@@ -45,7 +45,7 @@ fi
|
||||
if [ $osreldate -gt 300007 ]; then
|
||||
echo " + using sendfile()"
|
||||
|
||||
have=HAVE_SENDFILE . auto/have
|
||||
have=NGX_HAVE_SENDFILE . auto/have
|
||||
CORE_SRCS="$CORE_SRCS $FREEBSD_SENDFILE_SRCS"
|
||||
fi
|
||||
|
||||
@@ -57,8 +57,8 @@ if [ \( $osreldate -lt 500000 -a $osreldate -ge 410000 \) \
|
||||
then
|
||||
echo " + using kqueue"
|
||||
|
||||
have=HAVE_KQUEUE . auto/have
|
||||
have=HAVE_CLEAR_EVENT . auto/have
|
||||
have=NGX_HAVE_KQUEUE . auto/have
|
||||
have=NGX_HAVE_CLEAR_EVENT . auto/have
|
||||
EVENT_MODULES="$EVENT_MODULES $KQUEUE_MODULE"
|
||||
CORE_SRCS="$CORE_SRCS $KQUEUE_SRCS"
|
||||
EVENT_FOUND=YES
|
||||
@@ -73,7 +73,7 @@ if [ \( $version -lt 500000 -a $version -ge 430000 \) \
|
||||
-o $version -ge 500018 ]
|
||||
then
|
||||
echo " + using kqueue's NOTE_LOWAT"
|
||||
have=HAVE_LOWAT_EVENT . auto/have
|
||||
have=NGX_HAVE_LOWAT_EVENT . auto/have
|
||||
fi
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ if [ $USE_THREADS = "rfork" ]; then
|
||||
#
|
||||
# if [ $version -gt 460101 ]; then
|
||||
# echo " + kqueue's EVFILT_SIGNAL is safe"
|
||||
# have=HAVE_SAFE_EVFILT_SIGNAL . auto/have
|
||||
# have=NGX_HAVE_SAFE_EVFILT_SIGNAL . auto/have
|
||||
# else
|
||||
# echo "$0: error: the kqueue's EVFILT_SIGNAL is unsafe on this"
|
||||
# echo "FreeBSD version, so --with-threads=rfork could not be used"
|
||||
@@ -100,7 +100,7 @@ if [ $EVENT_AIO = YES ]; then
|
||||
if [ \( $version -lt 500000 -a $version -ge 430000 \) \
|
||||
-o $version -ge 500014 ]
|
||||
then
|
||||
have=HAVE_AIO . auto/have
|
||||
have=NGX_HAVE_AIO . auto/have
|
||||
EVENT_MODULES="$EVENT_MODULES $AIO_MODULE"
|
||||
CORE_SRCS="$CORE_SRCS $AIO_SRCS"
|
||||
else
|
||||
|
||||
@@ -37,7 +37,8 @@ version=`grep "#define LINUX_VERSION_CODE" /usr/include/linux/version.h \
|
||||
|
||||
if [ $version -ge 131609 -o $EVENT_RTSIG = YES ]; then
|
||||
echo " + using rt signals"
|
||||
have=HAVE_RTSIG . auto/have
|
||||
have=NGX_HAVE_RTSIG . auto/have
|
||||
have=NGX_HAVE_POLL . auto/have
|
||||
EVENT_MODULES="$EVENT_MODULES $RTSIG_MODULE"
|
||||
CORE_SRCS="$CORE_SRCS $RTSIG_SRCS"
|
||||
EVENT_FOUND=YES
|
||||
@@ -47,7 +48,7 @@ fi
|
||||
# epoll, EPOLLET version
|
||||
|
||||
ngx_feature="epoll"
|
||||
ngx_feature_name="epoll"
|
||||
ngx_feature_name="NGX_HAVE_EPOLL"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/epoll.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -60,8 +61,7 @@ ngx_feature_test="int efd = 0, fd = 1, n;
|
||||
. auto/feature
|
||||
|
||||
if [ $ngx_found = yes ]; then
|
||||
have=HAVE_EPOLL . auto/have
|
||||
have=HAVE_CLEAR_EVENT . auto/have
|
||||
have=NGX_HAVE_CLEAR_EVENT . auto/have
|
||||
CORE_SRCS="$CORE_SRCS $EPOLL_SRCS"
|
||||
EVENT_MODULES="$EVENT_MODULES $EPOLL_MODULE"
|
||||
EVENT_FOUND=YES
|
||||
@@ -72,7 +72,7 @@ fi
|
||||
|
||||
CC_AUX_FLAGS="-D_GNU_SOURCE"
|
||||
ngx_feature="sendfile()"
|
||||
ngx_feature_name="sendfile"
|
||||
ngx_feature_name="NGX_HAVE_SENDFILE"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/sendfile.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -90,7 +90,7 @@ fi
|
||||
|
||||
CC_AUX_FLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
ngx_feature="sendfile64()"
|
||||
ngx_feature_name="HAVE_SENDFILE64"
|
||||
ngx_feature_name="NGX_HAVE_SENDFILE64"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/sendfile.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -105,7 +105,7 @@ ngx_include="sys/prctl.h"; . auto/include
|
||||
# prctl(PR_SET_DUMPABLE)
|
||||
|
||||
ngx_feature="prctl(PR_SET_DUMPABLE)"
|
||||
ngx_feature_name="HAVE_PR_SET_DUMPABLE"
|
||||
ngx_feature_name="NGX_HAVE_PR_SET_DUMPABLE"
|
||||
ngx_feature_run=yes
|
||||
ngx_feature_incs="#include <sys/prctl.h>"
|
||||
ngx_feature_libs=
|
||||
|
||||
@@ -23,7 +23,7 @@ ngx_spacer=
|
||||
CC_AUX_FLAGS="-D_FILE_OFFSET_BITS=64 -lrt"
|
||||
|
||||
|
||||
case $PLATFORM in
|
||||
case $NGX_PLATFORM in
|
||||
|
||||
*:sun4u)
|
||||
# "-mcpu=v9" enables the "casa" assembler instruction
|
||||
@@ -43,7 +43,7 @@ fi
|
||||
|
||||
|
||||
ngx_feature="sendfilev()"
|
||||
ngx_feature_name="sendfile"
|
||||
ngx_feature_name="NGX_HAVE_SENDFILE"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/sendfile.h>"
|
||||
ngx_feature_libs="-lsendfile"
|
||||
@@ -54,7 +54,6 @@ ngx_feature_test="int fd = 1; sendfilevec_t vec[1];
|
||||
|
||||
|
||||
if [ $ngx_found = yes ]; then
|
||||
have=HAVE_SENDFILE . auto/have
|
||||
CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS"
|
||||
CORE_LIBS="$CORE_LIBS -lsendfile"
|
||||
fi
|
||||
|
||||
@@ -26,5 +26,5 @@ if [ $EVENT_SELECT = NO ]; then
|
||||
EVENT_MODULES="$EVENT_MODULES $SELECT_MODULE"
|
||||
fi
|
||||
|
||||
have=HAVE_AIO . auto/have
|
||||
have=HAVE_IOCP . auto/have
|
||||
have=NGX_HAVE_AIO . auto/have
|
||||
have=NGX_HAVE_IOCP . auto/have
|
||||
|
||||
14
auto/summary
14
auto/summary
@@ -95,14 +95,14 @@ END
|
||||
fi
|
||||
|
||||
|
||||
echo " nginx path prefix: $PREFIX"
|
||||
echo " nginx binary file: $SBIN_PATH"
|
||||
echo " nginx configuration file: $CONF_PATH"
|
||||
echo " nginx pid file: $PID_PATH"
|
||||
if [ ".$ERROR_LOG_PATH" != "." ]; then
|
||||
echo " nginx error log file: $ERROR_LOG_PATH"
|
||||
echo " nginx path prefix: $NGX_PREFIX"
|
||||
echo " nginx binary file: $NGX_SBIN_PATH"
|
||||
echo " nginx configuration file: $NGX_CONF_PATH"
|
||||
echo " nginx pid file: $NGX_PID_PATH"
|
||||
if test -n "$NGX_ERROR_LOG_PATH"; then
|
||||
echo " nginx error log file: $NGX_ERROR_LOG_PATH"
|
||||
else
|
||||
echo " nginx logs errors to stderr"
|
||||
fi
|
||||
echo " nginx http access log file: $HTTP_LOG_PATH"
|
||||
echo " nginx http access log file: $NGX_HTTP_LOG_PATH"
|
||||
echo
|
||||
|
||||
@@ -9,7 +9,7 @@ case $USE_THREADS in
|
||||
CORE_DEPS="$CORE_DEPS $FREEBSD_RFORK_DEPS"
|
||||
CORE_SRCS="$CORE_SRCS $FREEBSD_RFORK_SRCS"
|
||||
|
||||
case $PLATFORM in
|
||||
case $NGX_PLATFORM in
|
||||
*:i386)
|
||||
if [ \( $version -gt 500000 -a $version -lt 501000 \) \
|
||||
-o $version -lt 491000 ]
|
||||
@@ -42,7 +42,7 @@ case $USE_THREADS in
|
||||
;;
|
||||
|
||||
libc_r)
|
||||
case $PLATFORM in
|
||||
case $NGX_PLATFORM in
|
||||
FreeBSD:[34]*)
|
||||
have=NGX_THREADS . auto/have
|
||||
CFLAGS="$CFLAGS -pthread"
|
||||
|
||||
30
auto/unix
30
auto/unix
@@ -74,7 +74,7 @@ ngx_param=TIME_T_LEN; ngx_value=$ngx_max_len; . auto/types/value
|
||||
|
||||
|
||||
ngx_feature="setproctitle()"
|
||||
ngx_feature_name="HAVE_SETPROCTITLE"
|
||||
ngx_feature_name="NGX_HAVE_SETPROCTITLE"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs=
|
||||
ngx_feature_libs=
|
||||
@@ -83,7 +83,7 @@ ngx_feature_test="setproctitle(\"test\");"
|
||||
|
||||
|
||||
ngx_feature="pread()"
|
||||
ngx_feature_name="pread"
|
||||
ngx_feature_name="NGX_HAVE_PREAD"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs=
|
||||
ngx_feature_libs=
|
||||
@@ -92,7 +92,7 @@ ngx_feature_test="char buf[1]; ssize_t n; n = pread(0, buf, 1, 0)"
|
||||
|
||||
|
||||
ngx_feature="pwrite()"
|
||||
ngx_feature_name="pwrite"
|
||||
ngx_feature_name="NGX_HAVE_PWRITE"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs=
|
||||
ngx_feature_libs=
|
||||
@@ -101,7 +101,7 @@ ngx_feature_test="char buf[1]; ssize_t n; n = pwrite(1, buf, 1, 0)"
|
||||
|
||||
|
||||
ngx_feature="strerror_r()"
|
||||
ngx_feature_name="strerror_r"
|
||||
ngx_feature_name="NGX_HAVE_STRERROR_R"
|
||||
ngx_feature_run=yes
|
||||
ngx_feature_incs="#include <string.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -113,7 +113,7 @@ ngx_feature_test="char buf[32]; int n; n = strerror_r(1, buf, 32);
|
||||
# GNU style strerror_r() returns not length, but pointer
|
||||
|
||||
ngx_feature="gnu style strerror_r()"
|
||||
ngx_feature_name="gnu_strerror_r"
|
||||
ngx_feature_name="NGX_HAVE_GNU_STRERROR_R"
|
||||
ngx_feature_run=yes
|
||||
ngx_feature_incs="#include <string.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -123,7 +123,7 @@ ngx_feature_test="char buf[32]; int n; n = strerror_r(1, buf, 32);
|
||||
|
||||
|
||||
ngx_feature="localtime_r()"
|
||||
ngx_feature_name="localtime_r"
|
||||
ngx_feature_name="NGX_HAVE_LOCALTIME_R"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <time.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -132,7 +132,7 @@ ngx_feature_test="struct tm t; time_t c=0; localtime_r(&c, &t)"
|
||||
|
||||
|
||||
ngx_feature="posix_memalign()"
|
||||
ngx_feature_name="posix_memalign"
|
||||
ngx_feature_name="NGX_HAVE_POSIX_MEMALIGN"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <stdlib.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -141,7 +141,7 @@ ngx_feature_test="void *p; int n; n = posix_memalign(&p, 4096, 4096)"
|
||||
|
||||
|
||||
ngx_feature="memalign()"
|
||||
ngx_feature_name="memalign"
|
||||
ngx_feature_name="NGX_HAVE_MEMALIGN"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <stdlib.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -150,7 +150,7 @@ ngx_feature_test="void *p; p = memalign(4096, 4096)"
|
||||
|
||||
|
||||
ngx_feature="sched_yield()"
|
||||
ngx_feature_name="HAVE_SCHED_YIELD"
|
||||
ngx_feature_name="NGX_HAVE_SCHED_YIELD"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sched.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -159,7 +159,7 @@ ngx_feature_test="sched_yield()"
|
||||
|
||||
|
||||
ngx_feature="mmap(MAP_ANON|MAP_SHARED)"
|
||||
ngx_feature_name="MAP_ANON"
|
||||
ngx_feature_name="NGX_HAVE_MAP_ANON"
|
||||
ngx_feature_run=yes
|
||||
ngx_feature_incs="#include <sys/mman.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -171,7 +171,7 @@ ngx_feature_test="void *p;
|
||||
|
||||
|
||||
ngx_feature='mmap("/dev/zero", MAP_SHARED)'
|
||||
ngx_feature_name="MAP_DEVZERO"
|
||||
ngx_feature_name="NGX_HAVE_MAP_DEVZERO"
|
||||
ngx_feature_run=yes
|
||||
ngx_feature_incs="#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
@@ -185,7 +185,7 @@ ngx_feature_test='void *p; int fd;
|
||||
|
||||
|
||||
ngx_feature="System V shared memory"
|
||||
ngx_feature_name="SYSVSHM"
|
||||
ngx_feature_name="NGX_HAVE_SYSVSHM"
|
||||
ngx_feature_run=yes
|
||||
ngx_feature_incs="#include <sys/ipc.h>
|
||||
#include <sys/shm.h>"
|
||||
@@ -198,7 +198,7 @@ ngx_feature_test="int id;
|
||||
|
||||
|
||||
ngx_feature="struct msghdr.msg_control"
|
||||
ngx_feature_name="msghdr_msg_control"
|
||||
ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/socket.h>"
|
||||
ngx_feature_libs=
|
||||
@@ -207,7 +207,7 @@ ngx_feature_test="struct msghdr msg; msg.msg_control = NULL"
|
||||
|
||||
|
||||
ngx_feature="ioctl(FIONBIO)"
|
||||
ngx_feature_name="FIONBIO"
|
||||
ngx_feature_name="NGX_HAVE_FIONBIO"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/ioctl.h>
|
||||
$NGX_INCLUDE_SYS_FILIO_H"
|
||||
@@ -217,7 +217,7 @@ ngx_feature_test="int i; i = FIONBIO"
|
||||
|
||||
|
||||
ngx_feature="struct tm.tm_gmtoff"
|
||||
ngx_feature_name="gmtoff"
|
||||
ngx_feature_name="NGX_HAVE_GMTOFF"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <time.h>"
|
||||
ngx_feature_libs=
|
||||
|
||||
Reference in New Issue
Block a user