From: Ruslan Ermilov Date: Tue, 26 Jun 2012 08:15:40 +0000 (+0000) Subject: Added code to look up Google perftools in /opt/local/, for MacPorts. X-Git-Tag: release-1.3.2~2 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=835ad6b98bbca64925985a859de87ca123174b2e;p=nginx.git Added code to look up Google perftools in /opt/local/, for MacPorts. --- diff --git a/auto/lib/google-perftools/conf b/auto/lib/google-perftools/conf index 398ddd05e..7a9de3002 100644 --- a/auto/lib/google-perftools/conf +++ b/auto/lib/google-perftools/conf @@ -29,6 +29,22 @@ if [ $ngx_found = no ]; then fi +if [ $ngx_found = no ]; then + + # MacPorts + + ngx_feature="Google perftools in /opt/local/" + + if [ $NGX_RPATH = YES ]; then + ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lprofiler" + else + ngx_feature_libs="-L/opt/local/lib -lprofiler" + fi + + . auto/feature +fi + + if [ $ngx_found = yes ]; then CORE_LIBS="$CORE_LIBS $ngx_feature_libs"