blob: f98c851c5cdcf1a2650cbe927480e21c95ad7e30 [file] [log] [blame]
Igor Sysoevc0f8d912003-11-26 15:42:18 +00001
Igor Sysoevff8da912004-09-29 16:00:49 +00002# Copyright (C) Igor Sysoev
3
4
Igor Sysoev899b44e2005-05-12 14:58:06 +00005have=NGX_SOLARIS . auto/have_headers
Igor Sysoevc0edbcc2004-10-21 15:34:38 +00006
Igor Sysoevc0f8d912003-11-26 15:42:18 +00007CORE_INCS="$UNIX_INCS"
8CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS"
Igor Sysoev25b36fe2004-02-03 16:43:54 +00009CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS "
Igor Sysoeve2ff3ea2004-09-14 15:55:24 +000010CORE_LIBS="$CORE_LIBS -lsocket -lnsl -lrt"
Igor Sysoevc0f8d912003-11-26 15:42:18 +000011
Igor Sysoev274b63e2007-09-19 12:14:05 +000012NGX_RPATH=YES
13
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000014# Solaris's make does not support a blank line between target and rules
15ngx_spacer=
Igor Sysoev833823c2004-03-05 16:37:51 +000016
Igor Sysoev78452232005-10-12 13:50:36 +000017CC_AUX_FLAGS="$CC_AUX_FLAGS -D_FILE_OFFSET_BITS=64 -lsocket -lnsl -lrt"
Igor Sysoev4624ae72004-09-21 15:47:05 +000018
19
Igor Sysoev6bb889f2004-03-11 15:42:41 +000020if [ $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
26fi
27
Igor Sysoevc0f8d912003-11-26 15:42:18 +000028
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000029ngx_feature="sendfilev()"
Igor Sysoevf6906042004-11-25 16:17:31 +000030ngx_feature_name="NGX_HAVE_SENDFILE"
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000031ngx_feature_run=no
32ngx_feature_incs="#include <sys/sendfile.h>"
Igor Sysoev0ec09f92006-11-27 11:07:09 +000033ngx_feature_path=
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000034ngx_feature_libs="-lsendfile"
35ngx_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 Sysoev0e499db2003-11-27 07:45:22 +000039
Igor Sysoeva4b16df2004-02-02 21:19:52 +000040
41if [ $ngx_found = yes ]; then
Igor Sysoev0e499db2003-11-27 07:45:22 +000042 CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS"
43 CORE_LIBS="$CORE_LIBS -lsendfile"
44fi
Igor Sysoev4524fb02006-09-26 12:20:12 +000045
46
47ngx_feature="event ports"
48ngx_feature_name="NGX_HAVE_EVENTPORT"
49ngx_feature_run=no
50ngx_feature_incs="#include <port.h>"
Igor Sysoev0ec09f92006-11-27 11:07:09 +000051ngx_feature_path=
Igor Sysoev4524fb02006-09-26 12:20:12 +000052ngx_feature_libs=
53ngx_feature_test="int n = port_create()"
54. auto/feature
55
56if [ $ngx_found = yes ]; then
57 CORE_SRCS="$CORE_SRCS $EVENTPORT_SRCS"
58 EVENT_MODULES="$EVENT_MODULES $EVENTPORT_MODULE"
59fi