Mercurial > hg > nginx
comparison auto/threads @ 376:d0451e402e27
nginx-0.0.7-2004-07-05-10:55:54 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 05 Jul 2004 06:55:54 +0000 |
parents | 7bb9562216ce |
children | 449c4885dcd1 |
comparison
equal
deleted
inserted
replaced
375:744ccb59062d | 376:d0451e402e27 |
---|---|
1 | 1 |
2 if [ $USE_THREADS = "rfork" ]; then | 2 case $USE_THREADS in |
3 rfork) | |
4 have=NGX_THREADS . auto/have | |
5 have=NGX_USE_RFORK . auto/have | |
6 CORE_DEPS="$CORE_DEPS $FREEBSD_RFORK_DEPS" | |
7 CORE_SRCS="$CORE_SRCS $FREEBSD_RFORK_SRCS" | |
3 | 8 |
4 have=NGX_THREADS . auto/have | 9 case $PLATFORM in |
5 have=NGX_USE_RFORK . auto/have | 10 *:i386) |
6 CORE_DEPS="$CORE_DEPS $UNIX_THREADS_DEPS" | 11 if [ \( $version -gt 500000 -a $version -lt 501000 \) \ |
7 CORE_SRCS="$CORE_SRCS $FREEBSD_RFORK_SRCS" | 12 -o $version -lt 491000 ] |
13 then | |
14 CORE_SRCS="$CORE_SRCS $FREEBSD_RFORK_THREAD_SRCS" | |
15 fi | |
16 ;; | |
17 esac | |
18 ;; | |
8 | 19 |
9 if [ $version -lt 501000 ]; then | 20 pthread) |
10 CORE_SRCS="$CORE_SRCS $FREEBSD_RFORK_THREAD_SRCS" | 21 have=NGX_THREADS . auto/have |
11 fi | 22 CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS" |
23 CORE_LIBS="$CORE_LIBS -lpthread" | |
24 ;; | |
12 | 25 |
13 fi | 26 freebsd4) |
27 have=NGX_THREADS . auto/have | |
28 CFLAGS="$CFLAGS -pthread" | |
29 CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS" | |
30 CORE_LIBS="$CORE_LIBS -pthread" | |
31 ;; | |
32 | |
33 lc_r) | |
34 have=NGX_THREADS . auto/have | |
35 CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS" | |
36 CORE_LIBS="$CORE_LIBS -lc_r" | |
37 ;; | |
38 | |
39 lthr) | |
40 have=NGX_THREADS . auto/have | |
41 CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS" | |
42 CORE_LIBS="$CORE_LIBS -lthr" | |
43 ;; | |
44 | |
45 lkse) | |
46 have=NGX_THREADS . auto/have | |
47 CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS" | |
48 CORE_LIBS="$CORE_LIBS -lkse" | |
49 ;; | |
50 | |
51 esac |