comparison auto/lib/pcre/conf @ 255:e6938ca7331a

nginx-0.0.2-2004-02-09-23:47:18 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 09 Feb 2004 20:47:18 +0000
parents
children 43c26e85205a
comparison
equal deleted inserted replaced
254:98c77ca0f354 255:e6938ca7331a
1
2 if [ $PCRE != NONE ]; then
3 CORE_INCS="$CORE_INCS -I $PCRE"
4 CORE_DEPS="$CORE_DEPS $REGEX_DEPS"
5 CORE_SRCS="$CORE_SRCS $REGEX_SRCS"
6
7 if [ "$PLATFORM" = "win32" ]; then
8 #CFLAGS="$CFLAGS -D PCRE_STATIC -D HAVE_PCRE=1"
9 have=HAVE_PCRE . auto/have
10 have=PCRE_STATIC . auto/have
11
12 CORE_LIBS="$CORE_LIBS pcre.lib"
13 CORE_LINK="$CORE_LINK -libpath:$PCRE"
14 else
15 #CFLAGS="$CFLAGS -D HAVE_PCRE=1"
16 have=HAVE_PCRE . auto/have
17 CORE_DEPS="$CORE_DEPS $PCRE/.libs/libpcre.a"
18 CORE_LIBS="$CORE_LIBS -L $PCRE/.libs -lpcre"
19 fi
20
21 else
22
23 ngx_lib_inc="#include <pcre.h>"
24
25 ngx_lib="PCRE"
26 ngx_lib_test="pcre *re; pcre_compile(re, 0, NULL, 0, NULL)"
27 ngx_libs=-lpcre
28 . auto/lib/test
29
30
31 if [ $ngx_found = yes ]; then
32 CORE_LIBS="$CORE_LIBS $ngx_libs"
33 PCRE=YES
34 else
35 PCRE=NO
36 fi
37
38 fi