solaris 1.4 KB

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