Trying to link again the library using --cc-opt and --ld-opt before
attempting to use the default.
This change is similar to
9e2e4d04dfc4 (0.7.1) made for PCRE.
njs_feature_name=NJS_HAVE_OPENSSL
njs_feature_run=yes
njs_feature_incs=
- njs_feature_libs="-lcrypto"
+ njs_feature_libs=""
njs_feature_test="#include <openssl/evp.h>
int main() {
}"
. auto/feature
+ if [ $njs_found = no ]; then
+ njs_feature="OpenSSL library -lcrypto"
+ njs_feature_libs="-lcrypto"
+
+ . auto/feature
+ fi
+
if [ $njs_found = yes ]; then
njs_feature="OpenSSL version"