comparison auto/lib/pcre/conf @ 0:f0b350454894 NGINX_0_1_0

nginx 0.1.0 *) The first public version.
author Igor Sysoev <http://sysoev.ru>
date Mon, 04 Oct 2004 00:00:00 +0400
parents
children 4b2dafa26fe2
comparison
equal deleted inserted replaced
-1:000000000000 0:f0b350454894
1
2 # Copyright (C) Igor Sysoev
3
4
5 if [ $PCRE != NONE ]; then
6 CORE_INCS="$CORE_INCS $PCRE"
7 CORE_DEPS="$CORE_DEPS $REGEX_DEPS"
8 CORE_SRCS="$CORE_SRCS $REGEX_SRCS"
9
10 case "$CC" in
11
12 cl | wcl386 | bcc32)
13 have=HAVE_PCRE . auto/have
14 have=PCRE_STATIC . auto/have
15 CORE_DEPS="$CORE_DEPS $PCRE/pcre.h"
16 LINK_DEPS="$LINK_DEPS $PCRE/pcre.lib"
17 CORE_LIBS="$CORE_LIBS $PCRE/pcre.lib"
18 ;;
19
20 *icc)
21 have=HAVE_PCRE . auto/have
22 CORE_DEPS="$CORE_DEPS $PCRE/pcre.h"
23
24 LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a"
25
26 # to allow -ipo optimization we link with the *.o but not library
27 CORE_LIBS="$CORE_LIBS $PCRE/maketables.o"
28 CORE_LIBS="$CORE_LIBS $PCRE/get.o"
29 CORE_LIBS="$CORE_LIBS $PCRE/study.o"
30 CORE_LIBS="$CORE_LIBS $PCRE/pcre.o"
31 ;;
32
33 *)
34 have=HAVE_PCRE . auto/have
35 CORE_DEPS="$CORE_DEPS $PCRE/pcre.h"
36 LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a"
37 CORE_LIBS="$CORE_LIBS $PCRE/.libs/libpcre.a"
38 #CORE_LIBS="$CORE_LIBS -L $PCRE/.libs -lpcre"
39 ;;
40
41 esac
42
43 else
44
45 if [ $PLATFORM != win32 ]; then
46 PCRE=NO
47 ngx_lib_cflags=
48
49 # Linux
50
51 ngx_lib_inc="#include <pcre.h>"
52 ngx_lib="PCRE library"
53 ngx_lib_test="pcre *re; re = pcre_compile(NULL, 0, NULL, 0, NULL)"
54 ngx_libs="-lpcre"
55 . auto/lib/test
56
57
58 if [ $ngx_found = yes ]; then
59 have=HAVE_PCRE . auto/have
60 CORE_DEPS="$CORE_DEPS $REGEX_DEPS"
61 CORE_SRCS="$CORE_SRCS $REGEX_SRCS"
62 CORE_LIBS="$CORE_LIBS $ngx_libs"
63 PCRE=YES
64 ngx_found=no
65
66 else
67 # FreeBSD PCRE port.
68
69 ngx_lib="PCRE library in /usr/local/"
70 ngx_lib_cflags="-I /usr/local/include"
71 ngx_libs="-L /usr/local/lib -lpcre"
72 . auto/lib/test
73 fi
74
75
76 if [ $ngx_found = yes ]; then
77 have=HAVE_PCRE . auto/have
78 CORE_DEPS="$CORE_DEPS $REGEX_DEPS"
79 CORE_INCS="$CORE_INCS /usr/local/include"
80 CORE_SRCS="$CORE_SRCS $REGEX_SRCS"
81 CORE_LIBS="$CORE_LIBS $ngx_libs"
82 PCRE=YES
83 fi
84 fi
85
86 fi