annotate auto/lib/pcre/conf @ 9292:7654ad1366ef default tip

release-1.27.1 tag
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 04 Jun 2024 16:55:54 +0300
parents 0b5f12d5c531
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
444
42d11f017717 nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents: 320
diff changeset
1
42d11f017717 nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents: 320
diff changeset
2 # Copyright (C) Igor Sysoev
4412
d620f497c50f Copyright updated.
Maxim Konovalov <maxim@nginx.com>
parents: 4396
diff changeset
3 # Copyright (C) Nginx, Inc.
444
42d11f017717 nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents: 320
diff changeset
4
255
e6938ca7331a nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
5
e6938ca7331a nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
6 if [ $PCRE != NONE ]; then
7980
8007ea138d6a Configure: simplified PCRE compilation.
Maxim Dounin <mdounin@mdounin.ru>
parents: 6397
diff changeset
7
7981
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
8 if [ -f $PCRE/src/pcre2.h.generic ]; then
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
9
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
10 PCRE_LIBRARY=PCRE2
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
11
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
12 have=NGX_PCRE . auto/have
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
13 have=NGX_PCRE2 . auto/have
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
14
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
15 if [ "$NGX_PLATFORM" = win32 ]; then
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
16 have=PCRE2_STATIC . auto/have
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
17 fi
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
18
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
19 CORE_INCS="$CORE_INCS $PCRE/src/"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
20 CORE_DEPS="$CORE_DEPS $PCRE/src/pcre2.h"
7980
8007ea138d6a Configure: simplified PCRE compilation.
Maxim Dounin <mdounin@mdounin.ru>
parents: 6397
diff changeset
21
7981
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
22 case "$NGX_CC_NAME" in
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
23
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
24 msvc)
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
25 LINK_DEPS="$LINK_DEPS $PCRE/src/pcre2-8.lib"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
26 CORE_LIBS="$CORE_LIBS $PCRE/src/pcre2-8.lib"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
27 ;;
7980
8007ea138d6a Configure: simplified PCRE compilation.
Maxim Dounin <mdounin@mdounin.ru>
parents: 6397
diff changeset
28
7981
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
29 *)
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
30 LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre2-8.a"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
31 CORE_LIBS="$CORE_LIBS $PCRE/.libs/libpcre2-8.a"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
32 ;;
255
e6938ca7331a nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
33
7981
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
34 esac
282
30310107dbc9 nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents: 263
diff changeset
35
7981
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
36 else
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
37
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
38 PCRE_LIBRARY=PCRE
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
39
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
40 have=NGX_PCRE . auto/have
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
41
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
42 if [ "$NGX_PLATFORM" = win32 ]; then
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
43 have=PCRE_STATIC . auto/have
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
44 fi
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
45
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
46 CORE_INCS="$CORE_INCS $PCRE"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
47 CORE_DEPS="$CORE_DEPS $PCRE/pcre.h"
282
30310107dbc9 nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents: 263
diff changeset
48
7981
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
49 case "$NGX_CC_NAME" in
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
50
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
51 msvc | owc | bcc)
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
52 LINK_DEPS="$LINK_DEPS $PCRE/pcre.lib"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
53 CORE_LIBS="$CORE_LIBS $PCRE/pcre.lib"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
54 ;;
282
30310107dbc9 nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents: 263
diff changeset
55
7981
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
56 *)
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
57 LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
58 CORE_LIBS="$CORE_LIBS $PCRE/.libs/libpcre.a"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
59 ;;
255
e6938ca7331a nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
60
7981
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
61 esac
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
62 fi
4388
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
63
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
64 if [ $PCRE_JIT = YES ]; then
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
65 have=NGX_HAVE_PCRE_JIT . auto/have
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
66 PCRE_CONF_OPT="$PCRE_CONF_OPT --enable-jit"
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
67 fi
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
68
255
e6938ca7331a nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
69 else
e6938ca7331a nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
70
493
975f62e77f02 nginx-0.1.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents: 469
diff changeset
71 if [ "$NGX_PLATFORM" != win32 ]; then
7981
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
72 PCRE=NO
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
73 fi
2010
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
74
7981
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
75 if [ $PCRE = NO -a $PCRE2 != DISABLED ]; then
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
76
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
77 ngx_feature="PCRE2 library"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
78 ngx_feature_name="NGX_PCRE2"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
79 ngx_feature_run=no
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
80 ngx_feature_incs="#define PCRE2_CODE_UNIT_WIDTH 8
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
81 #include <pcre2.h>"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
82 ngx_feature_path=
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
83 ngx_feature_libs="-lpcre2-8"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
84 ngx_feature_test="pcre2_code *re;
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
85 re = pcre2_compile(NULL, 0, 0, NULL, NULL, NULL);
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
86 if (re == NULL) return 1"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
87 . auto/feature
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
88
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
89 if [ $ngx_found = no ]; then
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
90
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
91 # pcre2-config
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
92
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
93 ngx_pcre2_prefix=`pcre2-config --prefix 2>/dev/null`
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
94
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
95 if [ -n "$ngx_pcre2_prefix" ]; then
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
96 ngx_feature="PCRE2 library in $ngx_pcre2_prefix"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
97 ngx_feature_path=`pcre2-config --cflags \
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
98 | sed -n -e 's/.*-I *\([^ ][^ ]*\).*/\1/p'`
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
99 ngx_feature_libs=`pcre2-config --libs8`
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
100 . auto/feature
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
101 fi
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
102 fi
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
103
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
104 if [ $ngx_found = yes ]; then
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
105 have=NGX_PCRE . auto/have
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
106 CORE_INCS="$CORE_INCS $ngx_feature_path"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
107 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
108 PCRE=YES
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
109 PCRE_LIBRARY=PCRE2
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
110 fi
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
111 fi
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
112
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
113 if [ $PCRE = NO ]; then
255
e6938ca7331a nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
114
455
295d97d70c69 nginx-0.1.2-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents: 444
diff changeset
115 ngx_feature="PCRE library"
469
2ff194b74f1e nginx-0.1.9-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents: 461
diff changeset
116 ngx_feature_name="NGX_PCRE"
455
295d97d70c69 nginx-0.1.2-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents: 444
diff changeset
117 ngx_feature_run=no
295d97d70c69 nginx-0.1.2-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents: 444
diff changeset
118 ngx_feature_incs="#include <pcre.h>"
875
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
119 ngx_feature_path=
455
295d97d70c69 nginx-0.1.2-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents: 444
diff changeset
120 ngx_feature_libs="-lpcre"
4559
62d8db8c7157 Fixed more gcc46 warnings in configure tests.
Maxim Dounin <mdounin@mdounin.ru>
parents: 4412
diff changeset
121 ngx_feature_test="pcre *re;
62d8db8c7157 Fixed more gcc46 warnings in configure tests.
Maxim Dounin <mdounin@mdounin.ru>
parents: 4412
diff changeset
122 re = pcre_compile(NULL, 0, NULL, 0, NULL);
62d8db8c7157 Fixed more gcc46 warnings in configure tests.
Maxim Dounin <mdounin@mdounin.ru>
parents: 4412
diff changeset
123 if (re == NULL) return 1"
455
295d97d70c69 nginx-0.1.2-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents: 444
diff changeset
124 . auto/feature
255
e6938ca7331a nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
125
2010
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
126 if [ $ngx_found = no ]; then
875
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
127
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
128 # FreeBSD port
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
129
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
130 ngx_feature="PCRE library in /usr/local/"
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
131 ngx_feature_path="/usr/local/include"
1490
111c571f431c add rpath for Solaris
Igor Sysoev <igor@sysoev.ru>
parents: 1321
diff changeset
132
111c571f431c add rpath for Solaris
Igor Sysoev <igor@sysoev.ru>
parents: 1321
diff changeset
133 if [ $NGX_RPATH = YES ]; then
111c571f431c add rpath for Solaris
Igor Sysoev <igor@sysoev.ru>
parents: 1321
diff changeset
134 ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lpcre"
111c571f431c add rpath for Solaris
Igor Sysoev <igor@sysoev.ru>
parents: 1321
diff changeset
135 else
111c571f431c add rpath for Solaris
Igor Sysoev <igor@sysoev.ru>
parents: 1321
diff changeset
136 ngx_feature_libs="-L/usr/local/lib -lpcre"
111c571f431c add rpath for Solaris
Igor Sysoev <igor@sysoev.ru>
parents: 1321
diff changeset
137 fi
111c571f431c add rpath for Solaris
Igor Sysoev <igor@sysoev.ru>
parents: 1321
diff changeset
138
2010
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
139 . auto/feature
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
140 fi
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
141
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
142 if [ $ngx_found = no ]; then
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
143
2141
4bc6ef1d7904 update comment
Igor Sysoev <igor@sysoev.ru>
parents: 2010
diff changeset
144 # RedHat RPM, Solaris package
2010
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
145
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
146 ngx_feature="PCRE library in /usr/include/pcre/"
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
147 ngx_feature_path="/usr/include/pcre"
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
148 ngx_feature_libs="-lpcre"
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
149
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
150 . auto/feature
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
151 fi
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
152
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
153 if [ $ngx_found = no ]; then
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
154
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
155 # NetBSD port
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
156
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
157 ngx_feature="PCRE library in /usr/pkg/"
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
158 ngx_feature_path="/usr/pkg/include"
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
159
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
160 if [ $NGX_RPATH = YES ]; then
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
161 ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lpcre"
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
162 else
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
163 ngx_feature_libs="-L/usr/pkg/lib -lpcre"
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
164 fi
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
165
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
166 . auto/feature
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
167 fi
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
168
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
169 if [ $ngx_found = no ]; then
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
170
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
171 # MacPorts
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
172
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
173 ngx_feature="PCRE library in /opt/local/"
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
174 ngx_feature_path="/opt/local/include"
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
175
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
176 if [ $NGX_RPATH = YES ]; then
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
177 ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lpcre"
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
178 else
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
179 ngx_feature_libs="-L/opt/local/lib -lpcre"
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
180 fi
bd6cc5370fc1 simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents: 1490
diff changeset
181
875
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
182 . auto/feature
282
30310107dbc9 nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents: 263
diff changeset
183 fi
875
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
184
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
185 if [ $ngx_found = yes ]; then
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
186 CORE_INCS="$CORE_INCS $ngx_feature_path"
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
187 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
7af8276b1c2f test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents: 577
diff changeset
188 PCRE=YES
7981
0b5f12d5c531 PCRE2 library support.
Maxim Dounin <mdounin@mdounin.ru>
parents: 7980
diff changeset
189 PCRE_LIBRARY=PCRE
3684
4d47a0658e7d stop ./configure on Win32 if no library sources was specified,
Igor Sysoev <igor@sysoev.ru>
parents: 2893
diff changeset
190 fi
4388
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
191
4396
eaace502bdf6 Fixed configure with system PCRE library on Solaris.
Valentin Bartenev <vbart@nginx.com>
parents: 4388
diff changeset
192 if [ $PCRE = YES ]; then
4388
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
193 ngx_feature="PCRE JIT support"
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
194 ngx_feature_name="NGX_HAVE_PCRE_JIT"
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
195 ngx_feature_test="int jit = 0;
4960
b39d947fcb82 Configure: better check for PCRE JIT.
Maxim Dounin <mdounin@mdounin.ru>
parents: 4559
diff changeset
196 pcre_free_study(NULL);
4388
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
197 pcre_config(PCRE_CONFIG_JIT, &jit);
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
198 if (jit != 1) return 1;"
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
199 . auto/feature
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
200
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
201 if [ $ngx_found = yes ]; then
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
202 PCRE_JIT=YES
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
203 fi
005fc2d5e84f Added support for regex study and PCRE JIT (ticket #41) optimizations on
Valentin Bartenev <vbart@nginx.com>
parents: 3684
diff changeset
204 fi
3684
4d47a0658e7d stop ./configure on Win32 if no library sources was specified,
Igor Sysoev <igor@sysoev.ru>
parents: 2893
diff changeset
205 fi
2893
da1ba8a5c8c9 stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents: 2141
diff changeset
206
3684
4d47a0658e7d stop ./configure on Win32 if no library sources was specified,
Igor Sysoev <igor@sysoev.ru>
parents: 2893
diff changeset
207 if [ $PCRE != YES ]; then
2893
da1ba8a5c8c9 stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents: 2141
diff changeset
208 cat << END
da1ba8a5c8c9 stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents: 2141
diff changeset
209
da1ba8a5c8c9 stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents: 2141
diff changeset
210 $0: error: the HTTP rewrite module requires the PCRE library.
da1ba8a5c8c9 stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents: 2141
diff changeset
211 You can either disable the module by using --without-http_rewrite_module
da1ba8a5c8c9 stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents: 2141
diff changeset
212 option, or install the PCRE library into the system, or build the PCRE library
da1ba8a5c8c9 stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents: 2141
diff changeset
213 statically from the source with nginx by using --with-pcre=<path> option.
da1ba8a5c8c9 stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents: 2141
diff changeset
214
da1ba8a5c8c9 stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents: 2141
diff changeset
215 END
3684
4d47a0658e7d stop ./configure on Win32 if no library sources was specified,
Igor Sysoev <igor@sysoev.ru>
parents: 2893
diff changeset
216 exit 1
4d47a0658e7d stop ./configure on Win32 if no library sources was specified,
Igor Sysoev <igor@sysoev.ru>
parents: 2893
diff changeset
217 fi
2893
da1ba8a5c8c9 stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents: 2141
diff changeset
218
255
e6938ca7331a nginx-0.0.2-2004-02-09-23:47:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
219 fi