diff auto/lib/md5/conf @ 3684:4d47a0658e7d

stop ./configure on Win32 if no library sources was specified, the bug has been introduced in r2894
author Igor Sysoev <igor@sysoev.ru>
date Thu, 08 Jul 2010 15:57:36 +0000
parents 3ac5032f5981
children b659514a3948
line wrap: on
line diff
--- a/auto/lib/md5/conf
+++ b/auto/lib/md5/conf
@@ -94,8 +94,10 @@ else
             CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
             MD5=YES
             MD5_LIB=$ngx_md5_lib
-        else
+        fi
+    fi
 
+    if [ $MD5 != YES ]; then
 cat << END
 
 $0: error: the HTTP cache module requires md5 functions
@@ -105,9 +107,7 @@ or build the OpenSSL library statically 
 --with-http_ssl_module --with-openssl=<path> options.
 
 END
-            exit 1
-        fi
-
+        exit 1
     fi
 
 fi