conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright (C) Igor Sysoev
  2. # Copyright (C) Nginx, Inc.
  3. ngx_feature="Google perftools"
  4. ngx_feature_name=
  5. ngx_feature_run=no
  6. ngx_feature_incs=
  7. ngx_feature_path=
  8. ngx_feature_libs="-lprofiler"
  9. ngx_feature_test="ProfilerStop()"
  10. . auto/feature
  11. if [ $ngx_found = no ]; then
  12. # FreeBSD port
  13. ngx_feature="Google perftools in /usr/local/"
  14. if [ $NGX_RPATH = YES ]; then
  15. ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lprofiler"
  16. else
  17. ngx_feature_libs="-L/usr/local/lib -lprofiler"
  18. fi
  19. . auto/feature
  20. fi
  21. if [ $ngx_found = no ]; then
  22. # MacPorts
  23. ngx_feature="Google perftools in /opt/local/"
  24. if [ $NGX_RPATH = YES ]; then
  25. ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lprofiler"
  26. else
  27. ngx_feature_libs="-L/opt/local/lib -lprofiler"
  28. fi
  29. . auto/feature
  30. fi
  31. if [ $ngx_found = yes ]; then
  32. CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
  33. else
  34. cat << END
  35. $0: error: the Google perftools module requires the Google perftools
  36. library. You can either do not enable the module or install the library.
  37. END
  38. exit 1
  39. fi