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