2004-07-26 02:34:14 +08:00
|
|
|
|
2004-09-30 00:00:49 +08:00
|
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
|
|
|
2004-07-26 02:34:14 +08:00
|
|
|
if [ $OPENSSL != NONE ]; then
|
|
|
|
|
|
|
|
case "$CC" in
|
2009-04-16 03:46:24 +08:00
|
|
|
|
2009-05-14 23:46:34 +08:00
|
|
|
cl | bcc32)
|
2009-04-16 03:46:24 +08:00
|
|
|
have=NGX_OPENSSL . auto/have
|
|
|
|
have=NGX_SSL . auto/have
|
|
|
|
|
2009-05-14 23:46:34 +08:00
|
|
|
CFLAGS="$CFLAGS -DNO_SYS_TYPES_H"
|
2009-04-16 03:46:24 +08:00
|
|
|
|
2009-05-14 23:46:34 +08:00
|
|
|
CORE_INCS="$CORE_INCS $OPENSSL/openssl/include"
|
|
|
|
CORE_DEPS="$CORE_DEPS $OPENSSL/openssl/include/openssl/ssl.h"
|
|
|
|
CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/ssleay32.lib"
|
|
|
|
CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/libeay32.lib"
|
2009-04-16 03:46:24 +08:00
|
|
|
|
2009-04-21 22:31:40 +08:00
|
|
|
# libeay32.lib requires gdi32.lib
|
|
|
|
CORE_LIBS="$CORE_LIBS gdi32.lib"
|
2010-04-01 23:18:29 +08:00
|
|
|
# OpenSSL 1.0.0 requires crypt32.lib
|
|
|
|
CORE_LIBS="$CORE_LIBS crypt32.lib"
|
2009-04-16 03:46:24 +08:00
|
|
|
;;
|
|
|
|
|
2004-07-26 02:34:14 +08:00
|
|
|
*)
|
|
|
|
have=NGX_OPENSSL . auto/have
|
2005-11-15 21:30:52 +08:00
|
|
|
have=NGX_SSL . auto/have
|
2009-05-14 23:46:34 +08:00
|
|
|
|
2009-09-28 20:24:09 +08:00
|
|
|
CORE_INCS="$CORE_INCS $OPENSSL/.openssl/include"
|
|
|
|
CORE_DEPS="$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h"
|
|
|
|
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a"
|
|
|
|
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a"
|
2009-05-08 17:39:53 +08:00
|
|
|
CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 21:03:58 +08:00
|
|
|
;;
|
2004-07-26 02:34:14 +08:00
|
|
|
esac
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2010-07-08 23:51:47 +08:00
|
|
|
if [ "$NGX_PLATFORM" != win32 ]; then
|
2005-12-05 21:18:09 +08:00
|
|
|
|
2010-07-08 23:51:47 +08:00
|
|
|
OPENSSL=NO
|
2005-12-05 21:18:09 +08:00
|
|
|
|
2010-07-08 23:51:47 +08:00
|
|
|
ngx_feature="OpenSSL library"
|
|
|
|
ngx_feature_name="NGX_OPENSSL"
|
|
|
|
ngx_feature_run=no
|
|
|
|
ngx_feature_incs="#include <openssl/ssl.h>"
|
|
|
|
ngx_feature_path=
|
|
|
|
ngx_feature_libs="-lssl -lcrypto"
|
|
|
|
ngx_feature_test="SSL_library_init()"
|
|
|
|
. auto/feature
|
2005-12-05 21:18:09 +08:00
|
|
|
|
2010-07-08 23:51:47 +08:00
|
|
|
if [ $ngx_found = yes ]; then
|
|
|
|
have=NGX_SSL . auto/have
|
|
|
|
CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL"
|
|
|
|
OPENSSL=YES
|
|
|
|
else
|
2009-05-26 22:28:49 +08:00
|
|
|
|
|
|
|
cat << END
|
|
|
|
|
|
|
|
$0: error: SSL modules require the OpenSSL library.
|
|
|
|
You can either do not enable the modules, or install the OpenSSL library
|
|
|
|
into the system, or build the OpenSSL library statically from the source
|
|
|
|
with nginx by using --with-openssl=<path> option.
|
|
|
|
|
|
|
|
END
|
2010-07-08 23:51:47 +08:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
2004-07-26 02:34:14 +08:00
|
|
|
|
|
|
|
fi
|