solaris revision e18a033b
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) Nginx, Inc.
4
5
6have=NGX_SOLARIS . auto/have_headers
7
8CORE_INCS="$UNIX_INCS"
9CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS"
10CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS "
11CORE_LIBS="$CORE_LIBS -lsocket -lnsl"
12
13NGX_RPATH=YES
14
15# Solaris's make does not support a blank line between target and rules
16ngx_spacer=
17
18CC_AUX_FLAGS="$CC_AUX_FLAGS -D_FILE_OFFSET_BITS=64 -lsocket -lnsl"
19
20
21if [ $ZLIB_ASM != NO ]; then
22    echo "$0: error: the --with-zlib-asm=CPU option is not supported"
23    echo "on that platform"
24    echo
25
26    exit 1
27fi
28
29
30ngx_feature="sendfilev()"
31ngx_feature_name="NGX_HAVE_SENDFILE"
32ngx_feature_run=no
33ngx_feature_incs="#include <sys/sendfile.h>"
34ngx_feature_path=
35ngx_feature_libs="-lsendfile"
36ngx_feature_test="int fd = 1; sendfilevec_t vec[1];
37                  size_t sent; ssize_t n;
38                  n = sendfilev(fd, vec, 1, &sent);
39                  if (n == -1) return 1"
40. auto/feature
41
42
43if [ $ngx_found = yes ]; then
44    CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS"
45    CORE_LIBS="$CORE_LIBS -lsendfile"
46fi
47
48
49ngx_feature="event ports"
50ngx_feature_name="NGX_HAVE_EVENTPORT"
51ngx_feature_run=no
52ngx_feature_incs="#include <port.h>"
53ngx_feature_path=
54ngx_feature_libs=
55ngx_feature_test="(void) port_create()"
56. auto/feature
57
58if [ $ngx_found = yes ]; then
59    CORE_SRCS="$CORE_SRCS $EVENTPORT_SRCS"
60    EVENT_MODULES="$EVENT_MODULES $EVENTPORT_MODULE"
61fi
62