]> git.kaiwu.me - nginx.git/commitdiff
Added code to look up Google perftools in /opt/local/, for MacPorts.
authorRuslan Ermilov <ru@nginx.com>
Tue, 26 Jun 2012 08:15:40 +0000 (08:15 +0000)
committerRuslan Ermilov <ru@nginx.com>
Tue, 26 Jun 2012 08:15:40 +0000 (08:15 +0000)
auto/lib/google-perftools/conf

index 398ddd05e02e78b26d56e4c68fe2ca1db5c0441a..7a9de30020bdcfc3fac7fefa9ad1074ce20f06c7 100644 (file)
@@ -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"