Igor Sysoev | c0f8d91 | 2003-11-26 15:42:18 +0000 | [diff] [blame] | 1 | |
| 2 | CORE_INCS="$UNIX_INCS" |
| 3 | CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS" |
Igor Sysoev | 25b36fe | 2004-02-03 16:43:54 +0000 | [diff] [blame] | 4 | CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS " |
| 5 | EVENT_MODULES="$EVENT_MODULES" |
Igor Sysoev | c0f8d91 | 2003-11-26 15:42:18 +0000 | [diff] [blame] | 6 | |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 7 | CORE_LIBS="$CORE_LIBS -lsocket -lnsl" |
Igor Sysoev | c0f8d91 | 2003-11-26 15:42:18 +0000 | [diff] [blame] | 8 | |
Igor Sysoev | 833823c | 2004-03-05 16:37:51 +0000 | [diff] [blame] | 9 | # the Solaris's make support |
| 10 | MAKE_SL=YES |
| 11 | |
Igor Sysoev | 7af6b16 | 2004-02-09 07:46:43 +0000 | [diff] [blame] | 12 | |
Igor Sysoev | c0f8d91 | 2003-11-26 15:42:18 +0000 | [diff] [blame] | 13 | CC_TEST_FLAGS="-D_FILE_OFFSET_BITS=64" |
| 14 | |
Igor Sysoev | 24b56c9 | 2004-03-10 17:55:19 +0000 | [diff] [blame] | 15 | case $PLATFORM in |
| 16 | |
| 17 | SunOS:5.[89]:* | SunOS:5.10:*) |
Igor Sysoev | 6bb889f | 2004-03-11 15:42:41 +0000 | [diff] [blame] | 18 | PIPE="-pipe" |
Igor Sysoev | 24b56c9 | 2004-03-10 17:55:19 +0000 | [diff] [blame] | 19 | ;; |
| 20 | |
| 21 | *) |
Igor Sysoev | 6bb889f | 2004-03-11 15:42:41 +0000 | [diff] [blame] | 22 | # Solaris 7's /usr/ccs/bin/as does not support "-pipe" |
Igor Sysoev | 24b56c9 | 2004-03-10 17:55:19 +0000 | [diff] [blame] | 23 | ;; |
| 24 | |
| 25 | esac |
| 26 | |
| 27 | |
Igor Sysoev | 6bb889f | 2004-03-11 15:42:41 +0000 | [diff] [blame] | 28 | if [ $ZLIB_ASM != NO ]; then |
| 29 | echo "$0: error: the --with-zlib-asm=CPU option is not supported" |
| 30 | echo "on that platform" |
| 31 | echo |
| 32 | |
| 33 | exit 1 |
| 34 | fi |
| 35 | |
Igor Sysoev | c0f8d91 | 2003-11-26 15:42:18 +0000 | [diff] [blame] | 36 | |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 37 | ngx_inc="sys/devpoll.h"; . auto/inc |
Igor Sysoev | 0e499db | 2003-11-27 07:45:22 +0000 | [diff] [blame] | 38 | |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 39 | if [ $ngx_found = yes ]; then |
Igor Sysoev | 7af6b16 | 2004-02-09 07:46:43 +0000 | [diff] [blame] | 40 | have=HAVE_DEVPOLL . auto/have |
Igor Sysoev | 0e499db | 2003-11-27 07:45:22 +0000 | [diff] [blame] | 41 | CORE_SRCS="$CORE_SRCS $DEVPOLL_SRCS" |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 42 | EVENT_MODULES="$EVENT_MODULES $DEVPOLL_MODULE" |
| 43 | EVENT_FOUND=YES |
Igor Sysoev | 0e499db | 2003-11-27 07:45:22 +0000 | [diff] [blame] | 44 | fi |
| 45 | |
| 46 | |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 47 | ngx_func="sendfilev()"; |
| 48 | ngx_func_inc="#include <sys/sendfile.h>" |
| 49 | ngx_func_libs="-lsendfile" |
| 50 | ngx_func_test="int fd = 1; sendfilevec_t vec[1]; |
Igor Sysoev | 7af6b16 | 2004-02-09 07:46:43 +0000 | [diff] [blame] | 51 | size_t sent; ssize_t n; |
Igor Sysoev | 0e499db | 2003-11-27 07:45:22 +0000 | [diff] [blame] | 52 | n = sendfilev(fd, vec, 1, &sent)" |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 53 | . auto/func |
Igor Sysoev | 0e499db | 2003-11-27 07:45:22 +0000 | [diff] [blame] | 54 | |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 55 | |
| 56 | if [ $ngx_found = yes ]; then |
Igor Sysoev | 7af6b16 | 2004-02-09 07:46:43 +0000 | [diff] [blame] | 57 | have=HAVE_SENDFILE . auto/have |
Igor Sysoev | 0e499db | 2003-11-27 07:45:22 +0000 | [diff] [blame] | 58 | CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS" |
| 59 | CORE_LIBS="$CORE_LIBS -lsendfile" |
| 60 | fi |