Update and clean Tomato RAF files
[tomato.git] / release / src / router / nginx / auto / lib / libxslt / conf
blobbc19d83ddcecea62a4d2aa38dba4d4ea8fa1a1ee
2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
6     ngx_feature="libxslt"
7     ngx_feature_name=
8     ngx_feature_run=no
9     ngx_feature_incs="#include <libxml/parser.h>
10                       #include <libxml/tree.h>
11                       #include <libxslt/xslt.h>
12                       #include <libxslt/xsltInternals.h>
13                       #include <libxslt/transform.h>
14                       #include <libxslt/xsltutils.h>"
15     ngx_feature_path="/usr/include/libxml2"
16     ngx_feature_libs="-lxml2 -lxslt"
17     ngx_feature_test="xmlParserCtxtPtr    ctxt = NULL;
18                       xsltStylesheetPtr   sheet = NULL;
19                       xmlDocPtr           doc;
20                       doc = xmlParseChunk(ctxt, NULL, 0, 0);
21                       xsltApplyStylesheet(sheet, doc, NULL);"
22     . auto/feature
25 if [ $ngx_found = no ]; then
27     # FreeBSD port
29     ngx_feature="libxslt in /usr/local/"
30     ngx_feature_path="/usr/local/include/libxml2 /usr/local/include"
32     if [ $NGX_RPATH = YES ]; then
33         ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lxml2 -lxslt"
34     else
35         ngx_feature_libs="-L/usr/local/lib -lxml2 -lxslt"
36     fi
38     . auto/feature
42 if [ $ngx_found = no ]; then
44     # NetBSD port
46     ngx_feature="libxslt in /usr/pkg/"
47     ngx_feature_path="/usr/pkg/include/libxml2 /usr/pkg/include"
49     if [ $NGX_RPATH = YES ]; then
50         ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lxml2 -lxslt"
51     else
52         ngx_feature_libs="-L/usr/pkg/lib -lxml2 -lxslt"
53     fi
55     . auto/feature
59 if [ $ngx_found = no ]; then
61     # MacPorts
63     ngx_feature="libxslt in /opt/local/"
64     ngx_feature_path="/opt/local/include/libxml2 /opt/local/include"
66     if [ $NGX_RPATH = YES ]; then
67         ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lxml2 -lxslt"
68     else
69         ngx_feature_libs="-L/opt/local/lib -lxml2 -lxslt"
70     fi
72     . auto/feature
76 if [ $ngx_found = yes ]; then
78     CORE_INCS="$CORE_INCS $ngx_feature_path"
79     CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
81 else
83 cat << END
85 $0: error: the HTTP XSLT module requires the libxml2/libxslt
86 libraries. You can either do not enable the module or install the libraries.
88 END
90     exit 1
94     ngx_feature="libexslt"
95     ngx_feature_name=NGX_HAVE_EXSLT
96     ngx_feature_run=no
97     ngx_feature_incs="#include <libexslt/exslt.h>"
98     ngx_feature_path="/usr/include/libxml2"
99     ngx_feature_libs="-lexslt"
100     ngx_feature_test="exsltRegisterAll();"
101     . auto/feature
103 if [ $ngx_found = no ]; then
105     # FreeBSD port
107     ngx_feature="libexslt in /usr/local/"
108     ngx_feature_path="/usr/local/include/libxml2 /usr/local/include"
110     if [ $NGX_RPATH = YES ]; then
111         ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lexslt"
112     else
113         ngx_feature_libs="-L/usr/local/lib -lexslt"
114     fi
116     . auto/feature
120 if [ $ngx_found = no ]; then
122     # NetBSD port
124     ngx_feature="libexslt in /usr/pkg/"
125     ngx_feature_path="/usr/pkg/include/libxml2 /usr/local/include"
127     if [ $NGX_RPATH = YES ]; then
128         ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lexslt"
129     else
130         ngx_feature_libs="-L/usr/pkg/lib -lexslt"
131     fi
133     . auto/feature
137 if [ $ngx_found = no ]; then
139     # MacPorts
141     ngx_feature="libexslt in /opt/local/"
142     ngx_feature_path="/opt/local/include/libxml2 /opt/local/include"
144     if [ $NGX_RPATH = YES ]; then
145         ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lexslt"
146     else
147         ngx_feature_libs="-L/opt/local/lib -lexslt"
148     fi
150     . auto/feature
154 if [ $ngx_found = yes ]; then
155     CORE_LIBS="$CORE_LIBS -lexslt"