summaryrefslogtreecommitdiffhomepage
path: root/auto/lib/pcre
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-07-07 10:25:46 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-07-07 10:25:46 +0000
commit36efca02afd1216fb2a4fb2e5488dd1294ce5e5b (patch)
tree463a36b3387e52aaa6de6debf72d8cb40810c465 /auto/lib/pcre
parent59bd89ca8c687c8ea24866e9c73a4b477132b567 (diff)
downloadnginx-36efca02afd1216fb2a4fb2e5488dd1294ce5e5b.tar.gz
nginx-36efca02afd1216fb2a4fb2e5488dd1294ce5e5b.tar.bz2
r2011 merge:
simplify library autoconfigure
Diffstat (limited to 'auto/lib/pcre')
-rw-r--r--auto/lib/pcre/conf107
1 files changed, 26 insertions, 81 deletions
diff --git a/auto/lib/pcre/conf b/auto/lib/pcre/conf
index 555143c8c..9a9c6ee4f 100644
--- a/auto/lib/pcre/conf
+++ b/auto/lib/pcre/conf
@@ -84,6 +84,7 @@ if [ $PCRE != NONE ]; then
else
if [ "$NGX_PLATFORM" != win32 ]; then
+
PCRE=NO
ngx_feature="PCRE library"
@@ -95,20 +96,11 @@ else
ngx_feature_test="pcre *re; re = pcre_compile(NULL, 0, NULL, 0, NULL)"
. auto/feature
- if [ $ngx_found = yes ]; then
- CORE_DEPS="$CORE_DEPS $REGEX_DEPS"
- CORE_SRCS="$CORE_SRCS $REGEX_SRCS"
- CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
- PCRE=YES
- ngx_found=no
+ if [ $ngx_found = no ]; then
- else
# FreeBSD port
ngx_feature="PCRE library in /usr/local/"
- ngx_feature_name="NGX_PCRE"
- ngx_feature_run=no
- ngx_feature_incs="#include <pcre.h>"
ngx_feature_path="/usr/local/include"
if [ $NGX_RPATH = YES ]; then
@@ -117,96 +109,50 @@ else
ngx_feature_libs="-L/usr/local/lib -lpcre"
fi
- ngx_feature_test="pcre *re;
- re = pcre_compile(NULL, 0, NULL, 0, NULL)"
. auto/feature
fi
- if [ $ngx_found = yes ]; then
- CORE_DEPS="$CORE_DEPS $REGEX_DEPS"
- CORE_SRCS="$CORE_SRCS $REGEX_SRCS"
- CORE_INCS="$CORE_INCS $ngx_feature_path"
- CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
- PCRE=YES
- ngx_found=no
+ if [ $ngx_found = no ]; then
- else
# Linux package
- if [ $PCRE = NO ]; then
-
- ngx_feature="PCRE library in /usr/include/pcre/"
- ngx_feature_name="NGX_PCRE"
- ngx_feature_run=no
- ngx_feature_incs="#include <pcre.h>"
- ngx_feature_path="/usr/include/pcre"
- ngx_feature_libs="-lpcre"
- ngx_feature_test="pcre *re;
- re = pcre_compile(NULL, 0, NULL, 0, NULL)"
- . auto/feature
- fi
+ ngx_feature="PCRE library in /usr/include/pcre/"
+ ngx_feature_path="/usr/include/pcre"
+ ngx_feature_libs="-lpcre"
+
+ . auto/feature
fi
- if [ $ngx_found = yes ]; then
- CORE_DEPS="$CORE_DEPS $REGEX_DEPS"
- CORE_SRCS="$CORE_SRCS $REGEX_SRCS"
- CORE_INCS="$CORE_INCS $ngx_feature_path"
- CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
- PCRE=YES
- ngx_found=no
+ if [ $ngx_found = no ]; then
- else
# NetBSD port
- if [ $PCRE = NO ]; then
-
- ngx_feature="PCRE library in /usr/pkg/"
- ngx_feature_name="NGX_PCRE"
- ngx_feature_run=no
- ngx_feature_incs="#include <pcre.h>"
- ngx_feature_path="/usr/pkg/include"
-
- if [ $NGX_RPATH = YES ]; then
- ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lpcre"
- else
- ngx_feature_libs="-L/usr/pkg/lib -lpcre"
- fi
+ ngx_feature="PCRE library in /usr/pkg/"
+ ngx_feature_path="/usr/pkg/include"
- ngx_feature_test="pcre *re;
- re = pcre_compile(NULL, 0, NULL, 0, NULL)"
- . auto/feature
+ if [ $NGX_RPATH = YES ]; then
+ ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lpcre"
+ else
+ ngx_feature_libs="-L/usr/pkg/lib -lpcre"
fi
+
+ . auto/feature
fi
- if [ $ngx_found = yes ]; then
- CORE_DEPS="$CORE_DEPS $REGEX_DEPS"
- CORE_SRCS="$CORE_SRCS $REGEX_SRCS"
- CORE_INCS="$CORE_INCS $ngx_feature_path"
- CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
- PCRE=YES
- ngx_found=no
+ if [ $ngx_found = no ]; then
- else
# MacPorts
- if [ $PCRE = NO ]; then
-
- ngx_feature="PCRE library in /opt/local/"
- ngx_feature_name="NGX_PCRE"
- ngx_feature_run=no
- ngx_feature_incs="#include <pcre.h>"
- ngx_feature_path="/opt/local/include"
-
- if [ $NGX_RPATH = YES ]; then
- ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lpcre"
- else
- ngx_feature_libs="-L/opt/local/lib -lpcre"
- fi
+ ngx_feature="PCRE library in /opt/local/"
+ ngx_feature_path="/opt/local/include"
- ngx_feature_test="pcre *re;
- re = pcre_compile(NULL, 0, NULL, 0, NULL)"
- . auto/feature
+ if [ $NGX_RPATH = YES ]; then
+ ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lpcre"
+ else
+ ngx_feature_libs="-L/opt/local/lib -lpcre"
fi
+
+ . auto/feature
fi
if [ $ngx_found = yes ]; then
@@ -215,7 +161,6 @@ else
CORE_INCS="$CORE_INCS $ngx_feature_path"
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
PCRE=YES
- ngx_found=no
fi
fi