Igor Sysoev | c0f8d91 | 2003-11-26 15:42:18 +0000 | [diff] [blame] | 1 | |
Igor Sysoev | ff8da91 | 2004-09-29 16:00:49 +0000 | [diff] [blame] | 2 | # Copyright (C) Igor Sysoev |
| 3 | |
| 4 | |
Igor Sysoev | 899b44e | 2005-05-12 14:58:06 +0000 | [diff] [blame] | 5 | have=NGX_SOLARIS . auto/have_headers |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 6 | |
Igor Sysoev | c0f8d91 | 2003-11-26 15:42:18 +0000 | [diff] [blame] | 7 | CORE_INCS="$UNIX_INCS" |
| 8 | CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS" |
Igor Sysoev | 25b36fe | 2004-02-03 16:43:54 +0000 | [diff] [blame] | 9 | CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS " |
Igor Sysoev | e2ff3ea | 2004-09-14 15:55:24 +0000 | [diff] [blame] | 10 | CORE_LIBS="$CORE_LIBS -lsocket -lnsl -lrt" |
Igor Sysoev | c0f8d91 | 2003-11-26 15:42:18 +0000 | [diff] [blame] | 11 | |
Igor Sysoev | 274b63e | 2007-09-19 12:14:05 +0000 | [diff] [blame] | 12 | NGX_RPATH=YES |
| 13 | |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 14 | # Solaris's make does not support a blank line between target and rules |
| 15 | ngx_spacer= |
Igor Sysoev | 833823c | 2004-03-05 16:37:51 +0000 | [diff] [blame] | 16 | |
Igor Sysoev | 7845223 | 2005-10-12 13:50:36 +0000 | [diff] [blame] | 17 | CC_AUX_FLAGS="$CC_AUX_FLAGS -D_FILE_OFFSET_BITS=64 -lsocket -lnsl -lrt" |
Igor Sysoev | 4624ae7 | 2004-09-21 15:47:05 +0000 | [diff] [blame] | 18 | |
| 19 | |
Igor Sysoev | 6bb889f | 2004-03-11 15:42:41 +0000 | [diff] [blame] | 20 | if [ $ZLIB_ASM != NO ]; then |
| 21 | echo "$0: error: the --with-zlib-asm=CPU option is not supported" |
| 22 | echo "on that platform" |
| 23 | echo |
| 24 | |
| 25 | exit 1 |
| 26 | fi |
| 27 | |
Igor Sysoev | c0f8d91 | 2003-11-26 15:42:18 +0000 | [diff] [blame] | 28 | |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 29 | ngx_feature="sendfilev()" |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 30 | ngx_feature_name="NGX_HAVE_SENDFILE" |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 31 | ngx_feature_run=no |
| 32 | ngx_feature_incs="#include <sys/sendfile.h>" |
Igor Sysoev | 0ec09f9 | 2006-11-27 11:07:09 +0000 | [diff] [blame] | 33 | ngx_feature_path= |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 34 | ngx_feature_libs="-lsendfile" |
| 35 | ngx_feature_test="int fd = 1; sendfilevec_t vec[1]; |
| 36 | size_t sent; ssize_t n; |
| 37 | n = sendfilev(fd, vec, 1, &sent)" |
| 38 | . auto/feature |
Igor Sysoev | 0e499db | 2003-11-27 07:45:22 +0000 | [diff] [blame] | 39 | |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 40 | |
| 41 | if [ $ngx_found = yes ]; then |
Igor Sysoev | 0e499db | 2003-11-27 07:45:22 +0000 | [diff] [blame] | 42 | CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS" |
| 43 | CORE_LIBS="$CORE_LIBS -lsendfile" |
| 44 | fi |
Igor Sysoev | 4524fb0 | 2006-09-26 12:20:12 +0000 | [diff] [blame] | 45 | |
| 46 | |
| 47 | ngx_feature="event ports" |
| 48 | ngx_feature_name="NGX_HAVE_EVENTPORT" |
| 49 | ngx_feature_run=no |
| 50 | ngx_feature_incs="#include <port.h>" |
Igor Sysoev | 0ec09f9 | 2006-11-27 11:07:09 +0000 | [diff] [blame] | 51 | ngx_feature_path= |
Igor Sysoev | 4524fb0 | 2006-09-26 12:20:12 +0000 | [diff] [blame] | 52 | ngx_feature_libs= |
| 53 | ngx_feature_test="int n = port_create()" |
| 54 | . auto/feature |
| 55 | |
| 56 | if [ $ngx_found = yes ]; then |
| 57 | CORE_SRCS="$CORE_SRCS $EVENTPORT_SRCS" |
| 58 | EVENT_MODULES="$EVENT_MODULES $EVENTPORT_MODULE" |
| 59 | fi |