do not build OpenSSL with threads, if they are not used

This commit is contained in:
Igor Sysoev 2007-01-10 15:21:44 +00:00
parent 054f9b0a8c
commit 673382f2aa

View File

@ -8,9 +8,10 @@ else
NGX_OPENSSL_CONFIG="./config"
fi
if test -n "$USE_THREADS"; then
NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG threads"
fi
case $USE_THREADS in
NO) NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG no-threads" ;;
*) NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG threads" ;;
esac
case "$NGX_PLATFORM" in
*)