nginx-0.1.3-RELEASE import
*) Feature: the ngx_http_autoindex_module and the autoindex directive.
*) Feature: the proxy_set_x_url directive.
*) Bugfix: proxy module may get caught in an endless loop when sendfile
is not used.
diff --git a/auto/threads b/auto/threads
index 9aaea51..a12eed3 100644
--- a/auto/threads
+++ b/auto/threads
@@ -20,17 +20,16 @@
esac
;;
- pthread)
+ pthreads)
have=NGX_THREADS . auto/have
CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS"
CORE_LIBS="$CORE_LIBS -lpthread"
;;
- freebsd4)
+ libthr)
have=NGX_THREADS . auto/have
- CFLAGS="$CFLAGS -pthread"
CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS"
- CORE_LIBS="$CORE_LIBS -pthread"
+ CORE_LIBS="$CORE_LIBS -lthr"
;;
linuxthreads)
@@ -42,22 +41,30 @@
CORE_LIBS="$CORE_LIBS -L /usr/local/lib -llthread -llgcc_r"
;;
- lc_r)
- have=NGX_THREADS . auto/have
- CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS"
- CORE_LIBS="$CORE_LIBS -lc_r"
+ libc_r)
+ case $PLATFORM in
+ FreeBSD:[34]*)
+ have=NGX_THREADS . auto/have
+ CFLAGS="$CFLAGS -pthread"
+ CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS"
+ CORE_LIBS="$CORE_LIBS -pthread"
+ ;;
+
+ FreeBSD:5*)
+ have=NGX_THREADS . auto/have
+ CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS"
+ CORE_LIBS="$CORE_LIBS -lc_r"
+ ;;
+ esac
;;
- lthr)
- have=NGX_THREADS . auto/have
- CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS"
- CORE_LIBS="$CORE_LIBS -lthr"
+ NO)
;;
- lkse)
+ *)
have=NGX_THREADS . auto/have
CORE_SRCS="$CORE_SRCS $PTHREAD_SRCS"
- CORE_LIBS="$CORE_LIBS -lkse"
+ CORE_LIBS="$CORE_LIBS -l$USE_THREADS"
;;
esac