Skip to content

Commit

Permalink
nginx-0.1.8-RELEASE import
Browse files Browse the repository at this point in the history
    *) Bugfix: in the ngx_http_autoindex_module if the long file names were
       in the listing.

    *) Feature: the "^~" modifier in the location directive.

    *) Feature: the proxy_max_temp_file_size directive.
  • Loading branch information
igorsysoev committed Nov 20, 2004
1 parent 13376e1 commit d43bee8
Show file tree
Hide file tree
Showing 57 changed files with 879 additions and 589 deletions.
23 changes: 18 additions & 5 deletions auto/cc/conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ else
. auto/cc/icc
;;

# ccc)
ccc)
# # Compaq C V6.5-207
#
# . auto/cc/ccc
# ;;
ngx_include_opt="-I "
;;

# acc)
# # aCC: HP ANSI C++ B3910B A.03.55.02
Expand Down Expand Up @@ -95,7 +96,7 @@ if [ "$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="DUMMY"
ngx_feature_run=no
ngx_feature_incs=
ngx_feature_libs=
Expand All @@ -110,7 +111,7 @@ if [ "$PLATFORM" != win32 ]; then
fi

ngx_feature="gcc variadic macros"
ngx_feature_name=HAVE_GCC_VARIADIC_MACROS
ngx_feature_name="HAVE_GCC_VARIADIC_MACROS"
ngx_feature_run=yes
ngx_feature_incs="#include <stdio.h>
#define var(dummy, args...) sprintf(args)"
Expand All @@ -122,7 +123,7 @@ if [ "$PLATFORM" != win32 ]; then


ngx_feature="C99 variadic macros"
ngx_feature_name=HAVE_C99_VARIADIC_MACROS
ngx_feature_name="HAVE_C99_VARIADIC_MACROS"
ngx_feature_run=yes
ngx_feature_incs="#include <stdio.h>
#define var(dummy, ...) sprintf(__VA_ARGS__)"
Expand All @@ -132,4 +133,16 @@ if [ "$PLATFORM" != win32 ]; then
if (buf[0] != '1') return 1"
. auto/feature


# ngx_feature="inline"
# ngx_feature_name="DUMMY"
# ngx_feature_run=no
# ngx_feature_incs="int inline f(void) { return 1 }"
# ngx_feature_libs=
# ngx_feature_test=
# . auto/feature
#
# if [ $ngx_found = yes ]; then
# fi

fi
2 changes: 1 addition & 1 deletion auto/cc/gcc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


# gcc 2.7.2.3, 2.8.1, 2.95.4,
# 3.0.4, 3.1.1, 3.2.3, 3.3.2, 3.3.3, 3.3.4, 3.4
# 3.0.4, 3.1.1, 3.2.3, 3.3.2, 3.3.3, 3.3.4, 3.4, 3.4.2


# Solaris 7's /usr/ccs/bin/as does not support "-pipe"
Expand Down
2 changes: 2 additions & 0 deletions auto/configure
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ test -d $OBJS || mkdir $OBJS

echo > $NGX_AUTO_HEADERS_H
echo > $NGX_AUTO_CONFIG_H
echo > $NGX_AUTOCONF_ERR


if [ $DEBUG = YES ]; then
have=NGX_DEBUG . auto/have
Expand Down
1 change: 1 addition & 0 deletions auto/install
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


cat << END >> $MAKEFILE

install:
test -d $PREFIX || mkdir -p $PREFIX

Expand Down
90 changes: 44 additions & 46 deletions auto/lib/md5/make
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,21 @@
# Copyright (C) Igor Sysoev


case "$CC" in
case "$NGX_CC_NAME" in

cl)
makefile=makefile.msvc
opt="CPU_OPT=$CPU_OPT LIBC=$LIBC MD5_ASM=$MD5_ASM"
msvc*)
ngx_makefile=makefile.msvc
ngx_opt="CPU_OPT=$CPU_OPT LIBC=$LIBC MD5_ASM=$MD5_ASM"
;;

wcl386)
makefile=makefile.owc
opt="CPU_OPT=$CPU_OPT"
owc*)
ngx_makefile=makefile.owc
ngx_opt="CPU_OPT=$CPU_OPT"
;;

bcc32)
makefile=makefile.bcc
opt="-DCPU_OPT=$CPU_OPT -DMD5_ASM=$MD5_ASM"
;;

esac


case $PLATFORM in

win32)
line=`echo $MD5/md5.lib: | sed -e "s/\//$ngx_regex_dirsep/g"`
echo "$line" >> $MAKEFILE
;;

*)
echo "$MD5/libmd5.a:" >> $MAKEFILE
bcc)
ngx_makefile=makefile.bcc
ngx_opt="-DCPU_OPT=$CPU_OPT -DMD5_ASM=$MD5_ASM"
;;

esac
Expand All @@ -42,26 +28,32 @@ done=NO
case $PLATFORM in

win32)
md5=`echo $MD5 | sed -e "s/\//$ngx_regex_dirsep/g"`
cp auto/lib/md5/$ngx_makefile $MD5

cat << END >> $NGX_MAKEFILE

`echo "$MD5/md5.lib: $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"`
cd `echo $MD5 | sed -e "s/\//$ngx_regex_dirsep/g"`
\$(MAKE) -f $ngx_makefile $ngx_opt
cd ..\\..\\..

cp auto/lib/md5/$makefile $MD5
echo " cd $md5" >> $MAKEFILE
echo " \$(MAKE) -f $makefile $opt" >> $MAKEFILE
echo " cd ..\\..\\.." >> $MAKEFILE
END

done=YES
;;

SunOS:*:i86pc)
if [ $MD5_ASM = YES ]; then

MD5_OPT="CFLAGS=\"$MD5_OPT -DSOL -DMD5_ASM -DL_ENDIAN\""
cat << END >> $NGX_MAKEFILE

echo " cd $MD5 \\" >> $MAKEFILE
echo " && \$(MAKE) $MD5_OPT \\" >> $MAKEFILE
echo " MD5_ASM_OBJ=asm/mx86-sol.o \\" >> $MAKEFILE
echo " CC=\"\$(CC)\" CPP=\"\$(CPP)\" \\" >> $MAKEFILE
echo " libmd5.a" >> $MAKEFILE
$MD5/libmd5.a: $NGX_MAKEFILE
cd $MD5 \\
&& \$(MAKE) CFLAGS="$MD5_OPT -DSOL -DMD5_ASM -DL_ENDIAN" \\
CC="\$(CC)" CPP="\$(CPP)" \\
MD5_ASM_OBJ=asm/mx86-sol.o clean libmd5.a

END

done=YES
fi
Expand All @@ -73,13 +65,15 @@ case $PLATFORM in
*:i386 | *:i686)
if [ $MD5_ASM = YES ]; then

MD5_OPT="CFLAGS=\"$MD5_OPT -DELF -DMD5_ASM -DL_ENDIAN\""
cat << END >> $NGX_MAKEFILE

$MD5/libmd5.a: $NGX_MAKEFILE
cd $MD5 \\
&& \$(MAKE) CFLAGS="$MD5_OPT -DELF -DMD5_ASM -DL_ENDIAN" \\
CC="\$(CC)" CPP="\$(CPP)" \\
MD5_ASM_OBJ=asm/mx86-elf.o clean libmd5.a

echo " cd $MD5 \\" >> $MAKEFILE
echo " && \$(MAKE) $MD5_OPT \\" >> $MAKEFILE
echo " MD5_ASM_OBJ=asm/mx86-elf.o \\" >> $MAKEFILE
echo " CC=\"\$(CC)\" CPP=\"\$(CPP)\" \\" >> $MAKEFILE
echo " libmd5.a" >> $MAKEFILE
END

done=YES
fi
Expand All @@ -89,10 +83,14 @@ esac


if [ $done = NO ]; then
echo " cd $MD5 \\" >> $MAKEFILE
echo " && \$(MAKE) CFLAGS=\"$MD5_OPT\" \\" >> $MAKEFILE
echo " MD5_ASM_OBJ= CC=\"\$(CC)\" libmd5.a" >> $MAKEFILE
fi

cat << END >> $NGX_MAKEFILE

$MD5/libmd5.a: $NGX_MAKEFILE
cd $MD5 \\
&& \$(MAKE) CFLAGS="$MD5_OPT" \\
CC="\$(CC)" MD5_ASM_OBJ= clean libmd5.a

echo >> $MAKEFILE
END

fi
78 changes: 42 additions & 36 deletions auto/lib/pcre/make
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
# Copyright (C) Igor Sysoev


case "$CC" in
case "$NGX_CC_NAME" in

cl)
makefile=makefile.msvc
opt="CPU_OPT=$CPU_OPT LIBC=$LIBC"
msvc*)
ngx_makefile=makefile.msvc
ngx_opt="CPU_OPT=$CPU_OPT LIBC=$LIBC"
;;

wcl386)
makefile=makefile.owc
opt="CPU_OPT=$CPU_OPT"
owc*)
ngx_makefile=makefile.owc
ngx_opt="CPU_OPT=$CPU_OPT"
;;

bcc32)
makefile=makefile.bcc
opt="-DCPU_OPT=$CPU_OPT"
bcc)
ngx_makefile=makefile.bcc
ngx_opt="-DCPU_OPT=$CPU_OPT"
;;

esac
Expand All @@ -27,39 +27,45 @@ case $PLATFORM in
win32)
cp auto/lib/pcre/patch.pcre.in $PCRE
cp auto/lib/pcre/patch.config.in $PCRE
cp auto/lib/pcre/$makefile $PCRE
cp auto/lib/pcre/$ngx_makefile $PCRE

pcre=`echo $PCRE | sed -e "s/\//$ngx_regex_dirsep/g"`
line=`echo $PCRE/pcre.h: | sed -e "s/\//$ngx_regex_dirsep/g"`
ngx_pcre=`echo $PCRE | sed -e "s/\//$ngx_regex_dirsep/g"`

echo "$line" >> $MAKEFILE
echo " cd $pcre" >> $MAKEFILE
echo " \$(MAKE) -f $makefile pcre.h" >> $MAKEFILE
echo " cd ..\\..\\.." >> $MAKEFILE
echo >> $MAKEFILE
cat << END >> $NGX_MAKEFILE

line="$PCRE/pcre.lib: $PCRE/pcre.h"
line=`echo $line | sed -e "s/\//$ngx_regex_dirsep/g"`
`echo "$PCRE/pcre.h: $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"`
cd $ngx_pcre
\$(MAKE) -f $ngx_makefile pcre.h
cd ..\\..\\..


`echo "$PCRE/pcre.lib: $PCRE/pcre.h" | sed -e "s/\//$ngx_regex_dirsep/g"`
cd $ngx_pcre
\$(MAKE) -f $ngx_makefile $ngx_opt
cd ..\\..\\..

END

echo "$line" >> $MAKEFILE
echo " cd $pcre" >> $MAKEFILE
echo " \$(MAKE) -f $makefile $opt" >> $MAKEFILE
echo " cd ..\\..\\.." >> $MAKEFILE
;;

*)
PCRE_OPT="CFLAGS=\"$PCRE_OPT\""

echo "$PCRE/pcre.h:" >> $MAKEFILE
echo " cd $PCRE \\" >> $MAKEFILE
echo " && CC=\"\$(CC)\" $PCRE_OPT \\" >> $MAKEFILE
echo " ./configure --disable-shared" >> $MAKEFILE
echo >> $MAKEFILE
echo "$PCRE/.libs/libpcre.a: $PCRE/pcre.h" >> $MAKEFILE
echo " cd $PCRE \\" >> $MAKEFILE
echo " && \$(MAKE) libpcre.la" >> $MAKEFILE
cat << END >> $NGX_MAKEFILE

$PCRE/pcre.h: $NGX_MAKEFILE
cd $PCRE \\
&& if [ -f Makefile ]; then \$(MAKE) distclean; fi

cd $PCRE \\
&& CC="\$(CC)" CFLAGS="$PCRE_OPT" \\
./configure --disable-shared


$PCRE/.libs/libpcre.a: $PCRE/pcre.h
cd $PCRE \\
&& \$(MAKE) libpcre.la

END

;;

esac

echo >> $MAKEFILE
Loading

0 comments on commit d43bee8

Please sign in to comment.