Add check for "-L/..." in "$SSL_LIBS"

Checking for "-lssl" in "$LIBCURL" may not be enough to find where is the SSL lib
The test may fail with "cannot find -lssl" and "cannot find -lcrypto"
Add additional check if "$SSL_LIBS" can provide the SSL lib before moving on
This commit is contained in:
Jia Yuan Lo 2020-04-14 11:51:36 +08:00 committed by GitHub
parent f3176087af
commit b83bf6e571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -110,6 +110,11 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
LIBCURL="${LIBCURL} ${SSL_LIBS}"
fi
# fix cannot find -lssl
if test "x`echo \""$SSL_LIBS"\" | grep '\-L/'`" != 'x' ; then
LIBCURL="${LIBCURL} ${SSL_LIBS}"
fi
# This is so silly, but Apple actually has a bug in their
# curl-config script. Fixed in Tiger, but there are still
# lots of Panther installs around.