summaryrefslogtreecommitdiff
path: root/auto/lib
diff options
context:
space:
mode:
Diffstat (limited to 'auto/lib')
-rw-r--r--auto/lib/openssl/make27
1 files changed, 19 insertions, 8 deletions
diff --git a/auto/lib/openssl/make b/auto/lib/openssl/make
index c1aec882a..ff05a380a 100644
--- a/auto/lib/openssl/make
+++ b/auto/lib/openssl/make
@@ -1,17 +1,28 @@
# Copyright (C) Igor Sysoev
+if test -n "$OPENSSL_OPT"; then
+ NGX_OPENSSL_CONFIG="./Configure \"$OPENSSL_OPT\""
+else
+ NGX_OPENSSL_CONFIG="./config"
+fi
+
+if test -n "$USE_THREADS"; then
+ NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG threads"
+fi
case "$NGX_PLATFORM" in
*)
- echo "$OPENSSL/libssl.a:" >> $MAKEFILE
- echo " cd $OPENSSL \\" >> $MAKEFILE
- echo " && \$(MAKE) clean \\" >> $MAKEFILE
- echo " && CC=\"\$(CC)\" \\" >> $MAKEFILE
- echo " ./config threads no-shared \\" >> $MAKEFILE
- echo " && \$(MAKE)" >> $MAKEFILE
+ cat << END >> $NGX_MAKEFILE
+
+$OPENSSL/libssl.a:
+ cd $OPENSSL \\
+ && \$(MAKE) clean \\
+ && $NGX_OPENSSL_CONFIG no-shared \\
+ && \$(MAKE)
+
+END
+
;;
esac
-
-echo >> $MAKEFILE