Mercurial > hg > nginx
comparison auto/os/solaris @ 253:b6793bc5034b
nginx-0.0.2-2004-02-09-10:46:43 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 09 Feb 2004 07:46:43 +0000 |
parents | 2a0540287298 |
children | 014292b55158 |
comparison
equal
deleted
inserted
replaced
252:84b1c672ec5a | 253:b6793bc5034b |
---|---|
2 CORE_INCS="$UNIX_INCS" | 2 CORE_INCS="$UNIX_INCS" |
3 CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS" | 3 CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS" |
4 CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS " | 4 CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS " |
5 EVENT_MODULES="$EVENT_MODULES" | 5 EVENT_MODULES="$EVENT_MODULES" |
6 | 6 |
7 MD5_LIB="-lmd5" | |
8 ZLIB_LIB="-lz" | |
9 CORE_LIBS="$CORE_LIBS -lsocket -lnsl" | 7 CORE_LIBS="$CORE_LIBS -lsocket -lnsl" |
8 | |
10 | 9 |
11 CC_TEST_FLAGS="-D_FILE_OFFSET_BITS=64" | 10 CC_TEST_FLAGS="-D_FILE_OFFSET_BITS=64" |
12 | 11 |
13 | 12 |
14 ngx_inc="sys/devpoll.h"; . auto/inc | 13 ngx_inc="sys/devpoll.h"; . auto/inc |
15 | 14 |
16 if [ $ngx_found = yes ]; then | 15 if [ $ngx_found = yes ]; then |
17 CFLAGS="$CFLAGS -D HAVE_DEVPOLL=1" | 16 have=HAVE_DEVPOLL . auto/have |
18 CORE_SRCS="$CORE_SRCS $DEVPOLL_SRCS" | 17 CORE_SRCS="$CORE_SRCS $DEVPOLL_SRCS" |
19 EVENT_MODULES="$EVENT_MODULES $DEVPOLL_MODULE" | 18 EVENT_MODULES="$EVENT_MODULES $DEVPOLL_MODULE" |
20 EVENT_FOUND=YES | 19 EVENT_FOUND=YES |
21 fi | 20 fi |
22 | 21 |
23 | 22 |
24 ngx_func="sendfilev()"; | 23 ngx_func="sendfilev()"; |
25 ngx_func_inc="#include <sys/sendfile.h>" | 24 ngx_func_inc="#include <sys/sendfile.h>" |
26 ngx_func_libs="-lsendfile" | 25 ngx_func_libs="-lsendfile" |
27 ngx_func_test="int fd = 1; sendfilevec_t vec[1]; | 26 ngx_func_test="int fd = 1; sendfilevec_t vec[1]; |
28 size_t sent = 1; ssize_t n; | 27 size_t sent; ssize_t n; |
29 n = sendfilev(fd, vec, 1, &sent)" | 28 n = sendfilev(fd, vec, 1, &sent)" |
30 . auto/func | 29 . auto/func |
31 | 30 |
32 | 31 |
33 if [ $ngx_found = yes ]; then | 32 if [ $ngx_found = yes ]; then |
34 CFLAGS="$CFLAGS -D HAVE_SENDFILE=1" | 33 have=HAVE_SENDFILE . auto/have |
35 CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS" | 34 CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS" |
36 CORE_LIBS="$CORE_LIBS -lsendfile" | 35 CORE_LIBS="$CORE_LIBS -lsendfile" |
37 fi | 36 fi |