mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 18:13:01 +08:00
c0edbcce58
*) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS options in configure. *) Feature: the server_name directive supports *.domain.tld. *) Bugfix: the portability improvements. *) Bugfix: if configuration file was set in command line, the reconfiguration was impossible; the bug had appeared in 0.1.1. *) Bugfix: proxy module may get caught in an endless loop when sendfile is not used. *) Bugfix: with sendfile the response was not recoded according to the charset module directives; the bug had appeared in 0.1.1. *) Bugfix: very seldom bug in the kqueue processing. *) Bugfix: the gzip module compressed the proxied responses that was already compressed.
99 lines
2.4 KiB
Plaintext
99 lines
2.4 KiB
Plaintext
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
case "$CC" in
|
|
|
|
cl)
|
|
makefile=makefile.msvc
|
|
opt="CPU_OPT=$CPU_OPT LIBC=$LIBC MD5_ASM=$MD5_ASM"
|
|
;;
|
|
|
|
wcl386)
|
|
makefile=makefile.owc
|
|
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
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
done=NO
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
win32)
|
|
md5=`echo $MD5 | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
cp auto/lib/md5/$makefile $MD5
|
|
echo " cd $md5" >> $MAKEFILE
|
|
echo " \$(MAKE) -f $makefile $opt" >> $MAKEFILE
|
|
echo " cd ..\\..\\.." >> $MAKEFILE
|
|
|
|
done=YES
|
|
;;
|
|
|
|
SunOS:*:i86pc)
|
|
if [ $MD5_ASM = YES ]; then
|
|
|
|
MD5_OPT="CFLAGS=\"$MD5_OPT -DSOL -DMD5_ASM -DL_ENDIAN\""
|
|
|
|
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
|
|
|
|
done=YES
|
|
fi
|
|
;;
|
|
|
|
# FreeBSD: i386
|
|
# Linux: i686
|
|
|
|
*:i386 | *:i686)
|
|
if [ $MD5_ASM = YES ]; then
|
|
|
|
MD5_OPT="CFLAGS=\"$MD5_OPT -DELF -DMD5_ASM -DL_ENDIAN\""
|
|
|
|
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
|
|
|
|
done=YES
|
|
fi
|
|
;;
|
|
|
|
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
|
|
|
|
|
|
echo >> $MAKEFILE
|