build: Properly detect OpenSSL 1.0.2 when using configure
This commit is contained in:
Родитель
dd39a67101
Коммит
878c5757c0
|
@ -67,6 +67,7 @@ AC_DEFUN([CURL_CHECK_OPENSSL_API_HEADERS], [
|
||||||
esac
|
esac
|
||||||
case $tst_api in
|
case $tst_api in
|
||||||
0x110) tst_show="1.1.0" ;;
|
0x110) tst_show="1.1.0" ;;
|
||||||
|
0x102) tst_show="1.0.2" ;;
|
||||||
0x101) tst_show="1.0.1" ;;
|
0x101) tst_show="1.0.1" ;;
|
||||||
0x100) tst_show="1.0.0" ;;
|
0x100) tst_show="1.0.0" ;;
|
||||||
0x099) tst_show="0.9.9" ;;
|
0x099) tst_show="0.9.9" ;;
|
||||||
|
@ -138,6 +139,13 @@ AC_DEFUN([CURL_CHECK_OPENSSL_API_LIBRARY], [
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
if test "$tst_api" = "unknown"; then
|
||||||
|
AC_LINK_IFELSE([
|
||||||
|
AC_LANG_FUNC_LINK_TRY([SSL_CONF_CTX_new])
|
||||||
|
],[
|
||||||
|
tst_api="0x102"
|
||||||
|
])
|
||||||
|
fi
|
||||||
if test "$tst_api" = "unknown"; then
|
if test "$tst_api" = "unknown"; then
|
||||||
AC_LINK_IFELSE([
|
AC_LINK_IFELSE([
|
||||||
AC_LANG_FUNC_LINK_TRY([SSL_renegotiate_abbreviated])
|
AC_LANG_FUNC_LINK_TRY([SSL_renegotiate_abbreviated])
|
||||||
|
@ -210,6 +218,7 @@ AC_DEFUN([CURL_CHECK_OPENSSL_API_LIBRARY], [
|
||||||
fi
|
fi
|
||||||
case $tst_api in
|
case $tst_api in
|
||||||
0x110) tst_show="1.1.0" ;;
|
0x110) tst_show="1.1.0" ;;
|
||||||
|
0x102) tst_chow="1.0.2" ;;
|
||||||
0x101) tst_show="1.0.1" ;;
|
0x101) tst_show="1.0.1" ;;
|
||||||
0x100) tst_show="1.0.0" ;;
|
0x100) tst_show="1.0.0" ;;
|
||||||
0x099) tst_show="0.9.9" ;;
|
0x099) tst_show="0.9.9" ;;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче