configure: change functions to detect openssl (clones)

... since boringssl moved the former ones and the check started to fail.

URL: f551028d5c%5E!/
Original-patch-by: Bertrand Simonnet
This commit is contained in:
Daniel Stenberg 2015-08-21 23:58:24 +02:00
Родитель 8363656cb4
Коммит 30aa38c818
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1493,13 +1493,13 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
;;
esac
AC_CHECK_LIB(crypto, CRYPTO_lock,[
AC_CHECK_LIB(crypto, HMAC_Init,[
HAVECRYPTO="yes"
LIBS="-lcrypto $LIBS"
],[
LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
AC_CHECK_LIB(crypto, CRYPTO_add_lock,[
AC_CHECK_LIB(crypto, HMAC_Init_Ex,[
HAVECRYPTO="yes"
LIBS="-lcrypto $LIBS"], [
LDFLAGS="$CLEANLDFLAGS"