summaryrefslogtreecommitdiffhomepage
path: root/auto/lib
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-06-15 08:49:53 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-06-15 08:49:53 +0000
commit219dd1c4da822c5c2223cb7ab1a3b6cfb06f6b72 (patch)
tree446cc7cdd7b4f400592cbe62ab7cb2658e51e196 /auto/lib
parentc4f6d11856d0d5dbf1f02f107dd90f94fe70963d (diff)
downloadnginx-219dd1c4da822c5c2223cb7ab1a3b6cfb06f6b72.tar.gz
nginx-219dd1c4da822c5c2223cb7ab1a3b6cfb06f6b72.tar.bz2
merge r2893, r2894, and r2917:
various ./configure fixes: *) use md5/sha1 in OpenSSL only if OpenSSL is used *) stop ./configure at once on library failure *) librt must be tested before creating Makefile the bug has been introduced in r2817
Diffstat (limited to 'auto/lib')
-rw-r--r--auto/lib/conf18
-rw-r--r--auto/lib/google-perftools/conf11
-rw-r--r--auto/lib/md5/conf12
-rw-r--r--auto/lib/openssl/conf11
-rw-r--r--auto/lib/pcre/conf12
-rw-r--r--auto/lib/zlib/conf11
6 files changed, 73 insertions, 2 deletions
diff --git a/auto/lib/conf b/auto/lib/conf
index a4155e1ba..f52c90492 100644
--- a/auto/lib/conf
+++ b/auto/lib/conf
@@ -4,15 +4,29 @@
if [ $USE_PCRE = YES -o $PCRE != NONE ]; then
. auto/lib/pcre/conf
+
+else
+ if [ $USE_PCRE = DISABLED -a $HTTP_REWRITE = YES ]; then
+
+cat << END
+
+$0: error: the HTTP rewrite module requires the PCRE library.
+You can either disable the module by using --without-http_rewrite_module
+option or you have to enable the PCRE support.
+
+END
+ exit 1
+ fi
fi
+
if [ $USE_OPENSSL = YES ]; then
. auto/lib/openssl/conf
fi
if [ $USE_MD5 = YES ]; then
- if [ $OPENSSL != NONE -a $OPENSSL != NO ]; then
+ if [ $USE_OPENSSL = YES ]; then
have=NGX_HAVE_OPENSSL_MD5_H . auto/have
have=NGX_OPENSSL_MD5 . auto/have
MD5=YES
@@ -26,7 +40,7 @@ fi
if [ $USE_SHA1 = YES ]; then
- if [ $OPENSSL != NONE -a $OPENSSL != NO ]; then
+ if [ $USE_OPENSSL = YES ]; then
have=NGX_HAVE_OPENSSL_SHA1_H . auto/have
SHA1=YES
SHA1_LIB=OpenSSL
diff --git a/auto/lib/google-perftools/conf b/auto/lib/google-perftools/conf
index a8987c908..67df9f8ac 100644
--- a/auto/lib/google-perftools/conf
+++ b/auto/lib/google-perftools/conf
@@ -30,4 +30,15 @@ fi
if [ $ngx_found = yes ]; then
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
+
+else
+
+cat << END
+
+$0: error: the Google perftool module requires the Google perftools
+library. You can either do not enable the module or install the library.
+
+END
+
+ exit 1
fi
diff --git a/auto/lib/md5/conf b/auto/lib/md5/conf
index 75dd1300e..d4ef0070e 100644
--- a/auto/lib/md5/conf
+++ b/auto/lib/md5/conf
@@ -94,6 +94,18 @@ else
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
MD5=YES
MD5_LIB=$ngx_md5_lib
+ else
+
+cat << END
+
+$0: error: the HTTP cache module requires md5 functions
+from OpenSSL library. You can either disable the module by using
+--without-http_cache option, 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
+ exit 1
fi
fi
diff --git a/auto/lib/openssl/conf b/auto/lib/openssl/conf
index 8a762a2fc..731db80d7 100644
--- a/auto/lib/openssl/conf
+++ b/auto/lib/openssl/conf
@@ -66,6 +66,17 @@ else
have=NGX_SSL . auto/have
CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL"
OPENSSL=YES
+ else
+
+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
+ exit 1
fi
;;
diff --git a/auto/lib/pcre/conf b/auto/lib/pcre/conf
index 3a26b858f..71c6fc5f7 100644
--- a/auto/lib/pcre/conf
+++ b/auto/lib/pcre/conf
@@ -161,6 +161,18 @@ else
CORE_INCS="$CORE_INCS $ngx_feature_path"
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
PCRE=YES
+ else
+
+cat << END
+
+$0: error: the HTTP rewrite module requires the PCRE library.
+You can either disable the module by using --without-http_rewrite_module
+option, or install the PCRE library into the system, or build the PCRE library
+statically from the source with nginx by using --with-pcre=<path> option.
+
+END
+ exit 1
+
fi
fi
diff --git a/auto/lib/zlib/conf b/auto/lib/zlib/conf
index f033354a4..e44aa3424 100644
--- a/auto/lib/zlib/conf
+++ b/auto/lib/zlib/conf
@@ -57,6 +57,17 @@ else
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
ZLIB=YES
ngx_found=no
+ else
+
+cat << END
+
+$0: error: the HTTP gzip module requires the zlib library.
+You can either disable the module by using --without-http_gzip_module
+option, or install the zlib library into the system, or build the zlib library
+statically from the source with nginx by using --with-zlib=<path> option.
+
+END
+ exit 1
fi
fi