Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.15.12 ]​[ nginx-1.16.0 ]​

0001 
0002 # Copyright (C) Igor Sysoev
0003 # Copyright (C) Nginx, Inc.
0004 
0005 
0006 have=NGX_SOLARIS . auto/have_headers
0007 
0008 CORE_INCS="$UNIX_INCS"
0009 CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS"
0010 CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS "
0011 CORE_LIBS="$CORE_LIBS -lsocket -lnsl"
0012 
0013 NGX_RPATH=YES
0014 
0015 # Solaris's make does not support a blank line between target and rules
0016 ngx_spacer=
0017 
0018 CC_AUX_FLAGS="$CC_AUX_FLAGS -D_FILE_OFFSET_BITS=64 -lsocket -lnsl"
0019 
0020 
0021 if [ $ZLIB_ASM != NO ]; then
0022     echo "$0: error: the --with-zlib-asm=CPU option is not supported"
0023     echo "on that platform"
0024     echo
0025 
0026     exit 1
0027 fi
0028 
0029 
0030 ngx_feature="sendfilev()"
0031 ngx_feature_name="NGX_HAVE_SENDFILE"
0032 ngx_feature_run=no
0033 ngx_feature_incs="#include <sys/sendfile.h>"
0034 ngx_feature_path=
0035 ngx_feature_libs="-lsendfile"
0036 ngx_feature_test="int fd = 1; sendfilevec_t vec[1];
0037                   size_t sent; ssize_t n;
0038                   n = sendfilev(fd, vec, 1, &sent);
0039                   if (n == -1) return 1"
0040 . auto/feature
0041 
0042 
0043 if [ $ngx_found = yes ]; then
0044     CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS"
0045     CORE_LIBS="$CORE_LIBS -lsendfile"
0046 fi
0047 
0048 
0049 ngx_feature="event ports"
0050 ngx_feature_name="NGX_HAVE_EVENTPORT"
0051 ngx_feature_run=no
0052 ngx_feature_incs="#include <port.h>"
0053 ngx_feature_path=
0054 ngx_feature_libs=
0055 ngx_feature_test="(void) port_create()"
0056 . auto/feature
0057 
0058 if [ $ngx_found = yes ]; then
0059     CORE_SRCS="$CORE_SRCS $EVENTPORT_SRCS"
0060     EVENT_MODULES="$EVENT_MODULES $EVENTPORT_MODULE"
0061 fi