conf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright (C) Igor Sysoev
  2. if [ $ZLIB != NONE ]; then
  3. CORE_INCS="$CORE_INCS $ZLIB"
  4. case "$NGX_CC_NAME" in
  5. msvc* | owc* | bcc)
  6. LINK_DEPS="$LINK_DEPS $ZLIB/zlib.lib"
  7. CORE_LIBS="$CORE_LIBS $ZLIB/zlib.lib"
  8. ;;
  9. icc*)
  10. LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
  11. # to allow -ipo optimization we link with the *.o but not library
  12. CORE_LIBS="$CORE_LIBS $ZLIB/adler32.o"
  13. CORE_LIBS="$CORE_LIBS $ZLIB/crc32.o"
  14. CORE_LIBS="$CORE_LIBS $ZLIB/deflate.o"
  15. CORE_LIBS="$CORE_LIBS $ZLIB/trees.o"
  16. CORE_LIBS="$CORE_LIBS $ZLIB/zutil.o"
  17. CORE_LIBS="$CORE_LIBS $ZLIB/compress.o"
  18. if [ $ZLIB_ASM != NO ]; then
  19. CORE_LIBS="$CORE_LIBS $ZLIB/match.o"
  20. fi
  21. ;;
  22. *)
  23. LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
  24. CORE_LIBS="$CORE_LIBS $ZLIB/libz.a"
  25. #CORE_LIBS="$CORE_LIBS -L $ZLIB -lz"
  26. ;;
  27. esac
  28. else
  29. if [ "$NGX_PLATFORM" != win32 ]; then
  30. ZLIB=NO
  31. # FreeBSD, Solaris, Linux
  32. ngx_feature="zlib library"
  33. ngx_feature_name=
  34. ngx_feature_run=no
  35. ngx_feature_incs="#include <zlib.h>"
  36. ngx_feature_path=
  37. ngx_feature_libs="-lz"
  38. ngx_feature_test="z_stream z; deflate(&z, Z_NO_FLUSH)"
  39. . auto/feature
  40. if [ $ngx_found = yes ]; then
  41. CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
  42. ZLIB=YES
  43. ngx_found=no
  44. fi
  45. fi
  46. fi