2 # Copyright (C) Igor Sysoev
8 ngx_feature_incs="#include <libxml/parser.h>
9 #include <libxml/tree.h>
10 #include <libxslt/xslt.h>
11 #include <libxslt/xsltInternals.h>
12 #include <libxslt/transform.h>
13 #include <libxslt/xsltutils.h>"
14 ngx_feature_path="/usr/include/libxml2"
15 ngx_feature_libs="-lxml2 -lxslt"
16 ngx_feature_test="xmlParserCtxtPtr ctxt = NULL;
17 xsltStylesheetPtr sheet = NULL;
19 doc = xmlParseChunk(ctxt, NULL, 0, 0);
20 xsltApplyStylesheet(sheet, doc, NULL);"
24 if [ $ngx_found = no ]; then
28 ngx_feature="libxslt in /usr/local/"
29 ngx_feature_path="/usr/local/include/libxml2 /usr/local/include"
31 if [ $NGX_RPATH = YES ]; then
32 ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lxml2 -lxslt"
34 ngx_feature_libs="-L/usr/local/lib -lxml2 -lxslt"
41 if [ $ngx_found = no ]; then
45 ngx_feature="libxslt in /usr/pkg/"
46 ngx_feature_path="/usr/pkg/include/libxml2 /usr/pkg/include"
48 if [ $NGX_RPATH = YES ]; then
49 ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lxml2 -lxslt"
51 ngx_feature_libs="-L/usr/pkg/lib -lxml2 -lxslt"
58 if [ $ngx_found = no ]; then
62 ngx_feature="libxslt in /opt/local/"
63 ngx_feature_path="/opt/local/include/libxml2 /opt/local/include"
65 if [ $NGX_RPATH = YES ]; then
66 ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lxml2 -lxslt"
68 ngx_feature_libs="-L/opt/local/lib -lxml2 -lxslt"
75 if [ $ngx_found = yes ]; then
76 CORE_INCS="$CORE_INCS $ngx_feature_path"
77 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"