view auto/lib/pcre/make @ 10:46833bd150cb NGINX_0_1_5

nginx 0.1.5 *) Bugfix: on Solaris and Linux there may be too many "recvmsg() returned not enough data" alerts. *) Bugfix: there were the "writev() failed (22: Invalid argument)" errors on Solaris in proxy mode without sendfile. On other platforms that do not support sendfile at all the process got caught in an endless loop. *) Bugfix: segmentation fault on Solaris in proxy mode and using sendfile. *) Bugfix: segmentation fault on Solaris. *) Bugfix: on-line upgrade did not work on Linux. *) Bugfix: the ngx_http_autoindex_module module did not escape the spaces, the quotes, and the percent signs in the directory listing. *) Change: the decrease of the copy operations. *) Feature: the userid_p3p directive.
author Igor Sysoev <http://sysoev.ru>
date Thu, 11 Nov 2004 00:00:00 +0300
parents 4b2dafa26fe2
children 74b1868dd3cd
line wrap: on
line source


# Copyright (C) Igor Sysoev


case "$CC" in

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

    wcl386)
        makefile=makefile.owc
        opt="CPU_OPT=$CPU_OPT"
    ;;

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

esac


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

        pcre=`echo $PCRE | sed -e "s/\//$ngx_regex_dirsep/g"`
        line=`echo $PCRE/pcre.h: | 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

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

        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
    ;;

esac

echo                                                              >> $MAKEFILE