diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-04-08 19:58:25 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-04-08 19:58:25 +0400 |
commit | fff32326ca9009ebba0aadd24aa0683afe0d4a02 (patch) | |
tree | ac738d570dd46b0ef6b15b09b42d9956245f5005 /auto/lib/pcre | |
parent | 9a864bd8f87efd0fa23f552d4277475dd76bcea4 (diff) |
nginx-0.0.3-2004-04-08-19:58:25 import
Diffstat (limited to 'auto/lib/pcre')
-rw-r--r-- | auto/lib/pcre/conf | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/auto/lib/pcre/conf b/auto/lib/pcre/conf index fa50c24e9..a907e8b50 100644 --- a/auto/lib/pcre/conf +++ b/auto/lib/pcre/conf @@ -40,24 +40,38 @@ if [ $PCRE != NONE ]; then else if [ $PLATFORM != win32 ]; then - ngx_lib_inc="#include <pcre.h>" + PCRE=NO - ngx_lib="PCRE" - ngx_lib_test="pcre *re; pcre_compile(re, 0, NULL, 0, NULL)" - ngx_libs=-lpcre - . auto/lib/test + ngx_lib_inc="#include <pcre.h>" + ngx_lib="PCRE library" + ngx_lib_test="pcre *re; pcre_compile(re, 0, NULL, 0, NULL)" + ngx_libs=-lpcre + . auto/lib/test if [ $ngx_found = yes ]; then have=HAVE_PCRE . auto/have - CORE_DEPS="$CORE_DEPS $REGEX_DEPS" CORE_SRCS="$CORE_SRCS $REGEX_SRCS" CORE_LIBS="$CORE_LIBS $ngx_libs" - PCRE=YES + else - PCRE=NO + # FreeBSD PCRE port. + + ngx_lib="PCRE library in /usr/local/" + ngx_lib_cflags="-I /usr/local/include" + . auto/lib/test + fi + + + if [ $ngx_found = yes ]; then + have=HAVE_PCRE . auto/have + CORE_DEPS="$CORE_DEPS $REGEX_DEPS" + CORE_INCS="$CORE_INCS /usr/local/include" + CORE_SRCS="$CORE_SRCS $REGEX_SRCS" + CORE_LIBS="$CORE_LIBS $ngx_libs" + PCRE=YES fi fi |