diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-05-24 18:14:08 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-05-24 18:14:08 +0400 |
commit | 082ce9602399485a74fe6405dac4033be87ec97d (patch) | |
tree | 8ed58d50b2bedf2f7610b84574667dc5951cda77 /auto/lib/openssl | |
parent | 430d42bfdc105d5ea95050fa054bb94671ddcfa4 (diff) |
allow absolute path in --with-openssl=
Diffstat (limited to 'auto/lib/openssl')
-rw-r--r-- | auto/lib/openssl/make | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/auto/lib/openssl/make b/auto/lib/openssl/make index 0700891cf..6646cb2a4 100644 --- a/auto/lib/openssl/make +++ b/auto/lib/openssl/make @@ -45,12 +45,24 @@ END ;; *) + case $OPENSSL in + + /*) + ngx_prefix="$OPENSSL/openssl" + ;; + + *) + ngx_prefix="$PWD/$OPENSSL/openssl" + ;; + + esac + cat << END >> $NGX_MAKEFILE $OPENSSL/openssl/include/openssl/ssl.h: $NGX_MAKEFILE cd $OPENSSL \\ && \$(MAKE) clean \\ - && ./config --prefix=$PWD/$OPENSSL/openssl no-shared $OPENSSL_OPT \\ + && ./config --prefix=$ngx_prefix no-shared $OPENSSL_OPT \\ && \$(MAKE) \\ && \$(MAKE) install |