diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2083 |
1 files changed, 1982 insertions, 101 deletions
@@ -6215,99 +6215,6 @@ fi | |||
6215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6216 | } | 6216 | } |
6217 | if test "x$use_toolchain_hardening" = "x1"; then | 6217 | if test "x$use_toolchain_hardening" = "x1"; then |
6218 | # Cygwin GCC 7.x allows thunking on the CLI, but produces non-working | ||
6219 | # code. Unfortunately you only notice this at link time. | ||
6220 | case "$host" in | ||
6221 | *-*-cygwin*) ;; | ||
6222 | *) | ||
6223 | { | ||
6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mfunction-return=thunk" >&5 | ||
6225 | $as_echo_n "checking if $CC supports compile flag -mfunction-return=thunk... " >&6; } | ||
6226 | saved_CFLAGS="$CFLAGS" | ||
6227 | CFLAGS="$CFLAGS $WERROR -mfunction-return=thunk" | ||
6228 | _define_flag="" | ||
6229 | test "x$_define_flag" = "x" && _define_flag="-mfunction-return=thunk" | ||
6230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6231 | /* end confdefs.h. */ | ||
6232 | |||
6233 | #include <stdlib.h> | ||
6234 | #include <stdio.h> | ||
6235 | int main(int argc, char **argv) { | ||
6236 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6237 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6238 | float l = i * 2.1; | ||
6239 | double m = l / 0.5; | ||
6240 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6241 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6242 | exit(0); | ||
6243 | } | ||
6244 | |||
6245 | _ACEOF | ||
6246 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6247 | |||
6248 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6249 | then | ||
6250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6251 | $as_echo "no" >&6; } | ||
6252 | CFLAGS="$saved_CFLAGS" | ||
6253 | else | ||
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6255 | $as_echo "yes" >&6; } | ||
6256 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6257 | fi | ||
6258 | else | ||
6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6260 | $as_echo "no" >&6; } | ||
6261 | CFLAGS="$saved_CFLAGS" | ||
6262 | |||
6263 | fi | ||
6264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6265 | } # gcc | ||
6266 | { | ||
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mindirect-branch=thunk" >&5 | ||
6268 | $as_echo_n "checking if $CC supports compile flag -mindirect-branch=thunk... " >&6; } | ||
6269 | saved_CFLAGS="$CFLAGS" | ||
6270 | CFLAGS="$CFLAGS $WERROR -mindirect-branch=thunk" | ||
6271 | _define_flag="" | ||
6272 | test "x$_define_flag" = "x" && _define_flag="-mindirect-branch=thunk" | ||
6273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6274 | /* end confdefs.h. */ | ||
6275 | |||
6276 | #include <stdlib.h> | ||
6277 | #include <stdio.h> | ||
6278 | int main(int argc, char **argv) { | ||
6279 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6280 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6281 | float l = i * 2.1; | ||
6282 | double m = l / 0.5; | ||
6283 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6284 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6285 | exit(0); | ||
6286 | } | ||
6287 | |||
6288 | _ACEOF | ||
6289 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6290 | |||
6291 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6292 | then | ||
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6294 | $as_echo "no" >&6; } | ||
6295 | CFLAGS="$saved_CFLAGS" | ||
6296 | else | ||
6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6298 | $as_echo "yes" >&6; } | ||
6299 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6300 | fi | ||
6301 | else | ||
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6303 | $as_echo "no" >&6; } | ||
6304 | CFLAGS="$saved_CFLAGS" | ||
6305 | |||
6306 | fi | ||
6307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6308 | } # gcc | ||
6309 | ;; | ||
6310 | esac | ||
6311 | { | 6218 | { |
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mretpoline" >&5 | 6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mretpoline" >&5 |
6313 | $as_echo_n "checking if $CC supports compile flag -mretpoline... " >&6; } | 6220 | $as_echo_n "checking if $CC supports compile flag -mretpoline... " >&6; } |
@@ -12209,6 +12116,51 @@ fi | |||
12209 | 12116 | ||
12210 | fi | 12117 | fi |
12211 | 12118 | ||
12119 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
12120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf understands %zu" >&5 | ||
12121 | $as_echo_n "checking whether snprintf understands %zu... " >&6; } | ||
12122 | if test "$cross_compiling" = yes; then : | ||
12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
12124 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
12125 | |||
12126 | else | ||
12127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12128 | /* end confdefs.h. */ | ||
12129 | |||
12130 | #include <sys/types.h> | ||
12131 | #include <stdio.h> | ||
12132 | |||
12133 | int | ||
12134 | main () | ||
12135 | { | ||
12136 | |||
12137 | size_t a = 1, b = 2; | ||
12138 | char z[128]; | ||
12139 | snprintf(z, sizeof z, "%zu%zu", a, b); | ||
12140 | exit(strcmp(z, "12")); | ||
12141 | |||
12142 | ; | ||
12143 | return 0; | ||
12144 | } | ||
12145 | _ACEOF | ||
12146 | if ac_fn_c_try_run "$LINENO"; then : | ||
12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12148 | $as_echo "yes" >&6; } | ||
12149 | else | ||
12150 | |||
12151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12152 | $as_echo "no" >&6; } | ||
12153 | |||
12154 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
12155 | |||
12156 | |||
12157 | fi | ||
12158 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12159 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12160 | fi | ||
12161 | |||
12162 | fi | ||
12163 | |||
12212 | # We depend on vsnprintf returning the right thing on overflow: the | 12164 | # We depend on vsnprintf returning the right thing on overflow: the |
12213 | # number of characters it tried to create (as per SUSv3) | 12165 | # number of characters it tried to create (as per SUSv3) |
12214 | if test "x$ac_cv_func_vsnprintf" = "xyes" ; then | 12166 | if test "x$ac_cv_func_vsnprintf" = "xyes" ; then |
@@ -13026,14 +12978,19 @@ if ac_fn_c_try_run "$LINENO"; then : | |||
13026 | ssl_library_ver=`cat conftest.ssllibver` | 12978 | ssl_library_ver=`cat conftest.ssllibver` |
13027 | # Check version is supported. | 12979 | # Check version is supported. |
13028 | case "$ssl_library_ver" in | 12980 | case "$ssl_library_ver" in |
13029 | 10000*|0*) | 12981 | 10000*|0*) |
13030 | as_fn_error $? "OpenSSL >= 1.0.1 required (have \"$ssl_library_ver\")" "$LINENO" 5 | 12982 | as_fn_error $? "OpenSSL >= 1.0.1 required (have \"$ssl_library_ver\")" "$LINENO" 5 |
13031 | ;; | 12983 | ;; |
13032 | 100*) ;; # 1.0.x | 12984 | 100*) ;; # 1.0.x |
13033 | 200*) ;; # LibreSSL | 12985 | 1010000123456*) |
13034 | *) | 12986 | # https://github.com/openssl/openssl/pull/4613 |
13035 | as_fn_error $? "OpenSSL >= 1.1.0 is not yet supported (have \"$ssl_library_ver\")" "$LINENO" 5 | 12987 | as_fn_error $? "OpenSSL 1.1.x versions prior to 1.1.0g have a bug that breaks their use with OpenSSH (have \"$ssl_library_ver\")" "$LINENO" 5 |
13036 | ;; | 12988 | ;; |
12989 | 101*) ;; # 1.1.x | ||
12990 | 200*) ;; # LibreSSL | ||
12991 | *) | ||
12992 | as_fn_error $? "OpenSSL > 1.1.x is not yet supported (have \"$ssl_library_ver\")" "$LINENO" 5 | ||
12993 | ;; | ||
13037 | esac | 12994 | esac |
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 | 12995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 |
13039 | $as_echo "$ssl_library_ver" >&6; } | 12996 | $as_echo "$ssl_library_ver" >&6; } |
@@ -13404,6 +13361,1930 @@ $as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h | |||
13404 | fi | 13361 | fi |
13405 | 13362 | ||
13406 | 13363 | ||
13364 | # LibreSSL/OpenSSL 1.1x API | ||
13365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DH_get0_key" >&5 | ||
13366 | $as_echo_n "checking for library containing DH_get0_key... " >&6; } | ||
13367 | if ${ac_cv_search_DH_get0_key+:} false; then : | ||
13368 | $as_echo_n "(cached) " >&6 | ||
13369 | else | ||
13370 | ac_func_search_save_LIBS=$LIBS | ||
13371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13372 | /* end confdefs.h. */ | ||
13373 | |||
13374 | /* Override any GCC internal prototype to avoid an error. | ||
13375 | Use char because int might match the return type of a GCC | ||
13376 | builtin and then its argument prototype would still apply. */ | ||
13377 | #ifdef __cplusplus | ||
13378 | extern "C" | ||
13379 | #endif | ||
13380 | char DH_get0_key (); | ||
13381 | int | ||
13382 | main () | ||
13383 | { | ||
13384 | return DH_get0_key (); | ||
13385 | ; | ||
13386 | return 0; | ||
13387 | } | ||
13388 | _ACEOF | ||
13389 | for ac_lib in '' crypto; do | ||
13390 | if test -z "$ac_lib"; then | ||
13391 | ac_res="none required" | ||
13392 | else | ||
13393 | ac_res=-l$ac_lib | ||
13394 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13395 | fi | ||
13396 | if ac_fn_c_try_link "$LINENO"; then : | ||
13397 | ac_cv_search_DH_get0_key=$ac_res | ||
13398 | fi | ||
13399 | rm -f core conftest.err conftest.$ac_objext \ | ||
13400 | conftest$ac_exeext | ||
13401 | if ${ac_cv_search_DH_get0_key+:} false; then : | ||
13402 | break | ||
13403 | fi | ||
13404 | done | ||
13405 | if ${ac_cv_search_DH_get0_key+:} false; then : | ||
13406 | |||
13407 | else | ||
13408 | ac_cv_search_DH_get0_key=no | ||
13409 | fi | ||
13410 | rm conftest.$ac_ext | ||
13411 | LIBS=$ac_func_search_save_LIBS | ||
13412 | fi | ||
13413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DH_get0_key" >&5 | ||
13414 | $as_echo "$ac_cv_search_DH_get0_key" >&6; } | ||
13415 | ac_res=$ac_cv_search_DH_get0_key | ||
13416 | if test "$ac_res" != no; then : | ||
13417 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13418 | |||
13419 | $as_echo "#define HAVE_DH_GET0_KEY 1" >>confdefs.h | ||
13420 | |||
13421 | fi | ||
13422 | |||
13423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DH_get0_pqg" >&5 | ||
13424 | $as_echo_n "checking for library containing DH_get0_pqg... " >&6; } | ||
13425 | if ${ac_cv_search_DH_get0_pqg+:} false; then : | ||
13426 | $as_echo_n "(cached) " >&6 | ||
13427 | else | ||
13428 | ac_func_search_save_LIBS=$LIBS | ||
13429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13430 | /* end confdefs.h. */ | ||
13431 | |||
13432 | /* Override any GCC internal prototype to avoid an error. | ||
13433 | Use char because int might match the return type of a GCC | ||
13434 | builtin and then its argument prototype would still apply. */ | ||
13435 | #ifdef __cplusplus | ||
13436 | extern "C" | ||
13437 | #endif | ||
13438 | char DH_get0_pqg (); | ||
13439 | int | ||
13440 | main () | ||
13441 | { | ||
13442 | return DH_get0_pqg (); | ||
13443 | ; | ||
13444 | return 0; | ||
13445 | } | ||
13446 | _ACEOF | ||
13447 | for ac_lib in '' crypto; do | ||
13448 | if test -z "$ac_lib"; then | ||
13449 | ac_res="none required" | ||
13450 | else | ||
13451 | ac_res=-l$ac_lib | ||
13452 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13453 | fi | ||
13454 | if ac_fn_c_try_link "$LINENO"; then : | ||
13455 | ac_cv_search_DH_get0_pqg=$ac_res | ||
13456 | fi | ||
13457 | rm -f core conftest.err conftest.$ac_objext \ | ||
13458 | conftest$ac_exeext | ||
13459 | if ${ac_cv_search_DH_get0_pqg+:} false; then : | ||
13460 | break | ||
13461 | fi | ||
13462 | done | ||
13463 | if ${ac_cv_search_DH_get0_pqg+:} false; then : | ||
13464 | |||
13465 | else | ||
13466 | ac_cv_search_DH_get0_pqg=no | ||
13467 | fi | ||
13468 | rm conftest.$ac_ext | ||
13469 | LIBS=$ac_func_search_save_LIBS | ||
13470 | fi | ||
13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DH_get0_pqg" >&5 | ||
13472 | $as_echo "$ac_cv_search_DH_get0_pqg" >&6; } | ||
13473 | ac_res=$ac_cv_search_DH_get0_pqg | ||
13474 | if test "$ac_res" != no; then : | ||
13475 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13476 | |||
13477 | $as_echo "#define HAVE_DH_GET0_PQG 1" >>confdefs.h | ||
13478 | |||
13479 | fi | ||
13480 | |||
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DH_set0_key" >&5 | ||
13482 | $as_echo_n "checking for library containing DH_set0_key... " >&6; } | ||
13483 | if ${ac_cv_search_DH_set0_key+:} false; then : | ||
13484 | $as_echo_n "(cached) " >&6 | ||
13485 | else | ||
13486 | ac_func_search_save_LIBS=$LIBS | ||
13487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13488 | /* end confdefs.h. */ | ||
13489 | |||
13490 | /* Override any GCC internal prototype to avoid an error. | ||
13491 | Use char because int might match the return type of a GCC | ||
13492 | builtin and then its argument prototype would still apply. */ | ||
13493 | #ifdef __cplusplus | ||
13494 | extern "C" | ||
13495 | #endif | ||
13496 | char DH_set0_key (); | ||
13497 | int | ||
13498 | main () | ||
13499 | { | ||
13500 | return DH_set0_key (); | ||
13501 | ; | ||
13502 | return 0; | ||
13503 | } | ||
13504 | _ACEOF | ||
13505 | for ac_lib in '' crypto; do | ||
13506 | if test -z "$ac_lib"; then | ||
13507 | ac_res="none required" | ||
13508 | else | ||
13509 | ac_res=-l$ac_lib | ||
13510 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13511 | fi | ||
13512 | if ac_fn_c_try_link "$LINENO"; then : | ||
13513 | ac_cv_search_DH_set0_key=$ac_res | ||
13514 | fi | ||
13515 | rm -f core conftest.err conftest.$ac_objext \ | ||
13516 | conftest$ac_exeext | ||
13517 | if ${ac_cv_search_DH_set0_key+:} false; then : | ||
13518 | break | ||
13519 | fi | ||
13520 | done | ||
13521 | if ${ac_cv_search_DH_set0_key+:} false; then : | ||
13522 | |||
13523 | else | ||
13524 | ac_cv_search_DH_set0_key=no | ||
13525 | fi | ||
13526 | rm conftest.$ac_ext | ||
13527 | LIBS=$ac_func_search_save_LIBS | ||
13528 | fi | ||
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DH_set0_key" >&5 | ||
13530 | $as_echo "$ac_cv_search_DH_set0_key" >&6; } | ||
13531 | ac_res=$ac_cv_search_DH_set0_key | ||
13532 | if test "$ac_res" != no; then : | ||
13533 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13534 | |||
13535 | $as_echo "#define HAVE_DH_SET0_KEY 1" >>confdefs.h | ||
13536 | |||
13537 | fi | ||
13538 | |||
13539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DH_set_length" >&5 | ||
13540 | $as_echo_n "checking for library containing DH_set_length... " >&6; } | ||
13541 | if ${ac_cv_search_DH_set_length+:} false; then : | ||
13542 | $as_echo_n "(cached) " >&6 | ||
13543 | else | ||
13544 | ac_func_search_save_LIBS=$LIBS | ||
13545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13546 | /* end confdefs.h. */ | ||
13547 | |||
13548 | /* Override any GCC internal prototype to avoid an error. | ||
13549 | Use char because int might match the return type of a GCC | ||
13550 | builtin and then its argument prototype would still apply. */ | ||
13551 | #ifdef __cplusplus | ||
13552 | extern "C" | ||
13553 | #endif | ||
13554 | char DH_set_length (); | ||
13555 | int | ||
13556 | main () | ||
13557 | { | ||
13558 | return DH_set_length (); | ||
13559 | ; | ||
13560 | return 0; | ||
13561 | } | ||
13562 | _ACEOF | ||
13563 | for ac_lib in '' crypto; do | ||
13564 | if test -z "$ac_lib"; then | ||
13565 | ac_res="none required" | ||
13566 | else | ||
13567 | ac_res=-l$ac_lib | ||
13568 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13569 | fi | ||
13570 | if ac_fn_c_try_link "$LINENO"; then : | ||
13571 | ac_cv_search_DH_set_length=$ac_res | ||
13572 | fi | ||
13573 | rm -f core conftest.err conftest.$ac_objext \ | ||
13574 | conftest$ac_exeext | ||
13575 | if ${ac_cv_search_DH_set_length+:} false; then : | ||
13576 | break | ||
13577 | fi | ||
13578 | done | ||
13579 | if ${ac_cv_search_DH_set_length+:} false; then : | ||
13580 | |||
13581 | else | ||
13582 | ac_cv_search_DH_set_length=no | ||
13583 | fi | ||
13584 | rm conftest.$ac_ext | ||
13585 | LIBS=$ac_func_search_save_LIBS | ||
13586 | fi | ||
13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DH_set_length" >&5 | ||
13588 | $as_echo "$ac_cv_search_DH_set_length" >&6; } | ||
13589 | ac_res=$ac_cv_search_DH_set_length | ||
13590 | if test "$ac_res" != no; then : | ||
13591 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13592 | |||
13593 | $as_echo "#define HAVE_DH_SET_LENGTH 1" >>confdefs.h | ||
13594 | |||
13595 | fi | ||
13596 | |||
13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DH_set0_pqg" >&5 | ||
13598 | $as_echo_n "checking for library containing DH_set0_pqg... " >&6; } | ||
13599 | if ${ac_cv_search_DH_set0_pqg+:} false; then : | ||
13600 | $as_echo_n "(cached) " >&6 | ||
13601 | else | ||
13602 | ac_func_search_save_LIBS=$LIBS | ||
13603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13604 | /* end confdefs.h. */ | ||
13605 | |||
13606 | /* Override any GCC internal prototype to avoid an error. | ||
13607 | Use char because int might match the return type of a GCC | ||
13608 | builtin and then its argument prototype would still apply. */ | ||
13609 | #ifdef __cplusplus | ||
13610 | extern "C" | ||
13611 | #endif | ||
13612 | char DH_set0_pqg (); | ||
13613 | int | ||
13614 | main () | ||
13615 | { | ||
13616 | return DH_set0_pqg (); | ||
13617 | ; | ||
13618 | return 0; | ||
13619 | } | ||
13620 | _ACEOF | ||
13621 | for ac_lib in '' crypto; do | ||
13622 | if test -z "$ac_lib"; then | ||
13623 | ac_res="none required" | ||
13624 | else | ||
13625 | ac_res=-l$ac_lib | ||
13626 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13627 | fi | ||
13628 | if ac_fn_c_try_link "$LINENO"; then : | ||
13629 | ac_cv_search_DH_set0_pqg=$ac_res | ||
13630 | fi | ||
13631 | rm -f core conftest.err conftest.$ac_objext \ | ||
13632 | conftest$ac_exeext | ||
13633 | if ${ac_cv_search_DH_set0_pqg+:} false; then : | ||
13634 | break | ||
13635 | fi | ||
13636 | done | ||
13637 | if ${ac_cv_search_DH_set0_pqg+:} false; then : | ||
13638 | |||
13639 | else | ||
13640 | ac_cv_search_DH_set0_pqg=no | ||
13641 | fi | ||
13642 | rm conftest.$ac_ext | ||
13643 | LIBS=$ac_func_search_save_LIBS | ||
13644 | fi | ||
13645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DH_set0_pqg" >&5 | ||
13646 | $as_echo "$ac_cv_search_DH_set0_pqg" >&6; } | ||
13647 | ac_res=$ac_cv_search_DH_set0_pqg | ||
13648 | if test "$ac_res" != no; then : | ||
13649 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13650 | |||
13651 | $as_echo "#define HAVE_DH_SET0_PQG 1" >>confdefs.h | ||
13652 | |||
13653 | fi | ||
13654 | |||
13655 | |||
13656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DSA_get0_key" >&5 | ||
13657 | $as_echo_n "checking for library containing DSA_get0_key... " >&6; } | ||
13658 | if ${ac_cv_search_DSA_get0_key+:} false; then : | ||
13659 | $as_echo_n "(cached) " >&6 | ||
13660 | else | ||
13661 | ac_func_search_save_LIBS=$LIBS | ||
13662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13663 | /* end confdefs.h. */ | ||
13664 | |||
13665 | /* Override any GCC internal prototype to avoid an error. | ||
13666 | Use char because int might match the return type of a GCC | ||
13667 | builtin and then its argument prototype would still apply. */ | ||
13668 | #ifdef __cplusplus | ||
13669 | extern "C" | ||
13670 | #endif | ||
13671 | char DSA_get0_key (); | ||
13672 | int | ||
13673 | main () | ||
13674 | { | ||
13675 | return DSA_get0_key (); | ||
13676 | ; | ||
13677 | return 0; | ||
13678 | } | ||
13679 | _ACEOF | ||
13680 | for ac_lib in '' crypto; do | ||
13681 | if test -z "$ac_lib"; then | ||
13682 | ac_res="none required" | ||
13683 | else | ||
13684 | ac_res=-l$ac_lib | ||
13685 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13686 | fi | ||
13687 | if ac_fn_c_try_link "$LINENO"; then : | ||
13688 | ac_cv_search_DSA_get0_key=$ac_res | ||
13689 | fi | ||
13690 | rm -f core conftest.err conftest.$ac_objext \ | ||
13691 | conftest$ac_exeext | ||
13692 | if ${ac_cv_search_DSA_get0_key+:} false; then : | ||
13693 | break | ||
13694 | fi | ||
13695 | done | ||
13696 | if ${ac_cv_search_DSA_get0_key+:} false; then : | ||
13697 | |||
13698 | else | ||
13699 | ac_cv_search_DSA_get0_key=no | ||
13700 | fi | ||
13701 | rm conftest.$ac_ext | ||
13702 | LIBS=$ac_func_search_save_LIBS | ||
13703 | fi | ||
13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DSA_get0_key" >&5 | ||
13705 | $as_echo "$ac_cv_search_DSA_get0_key" >&6; } | ||
13706 | ac_res=$ac_cv_search_DSA_get0_key | ||
13707 | if test "$ac_res" != no; then : | ||
13708 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13709 | |||
13710 | $as_echo "#define HAVE_DSA_GET0_KEY 1" >>confdefs.h | ||
13711 | |||
13712 | fi | ||
13713 | |||
13714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DSA_get0_pqg" >&5 | ||
13715 | $as_echo_n "checking for library containing DSA_get0_pqg... " >&6; } | ||
13716 | if ${ac_cv_search_DSA_get0_pqg+:} false; then : | ||
13717 | $as_echo_n "(cached) " >&6 | ||
13718 | else | ||
13719 | ac_func_search_save_LIBS=$LIBS | ||
13720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13721 | /* end confdefs.h. */ | ||
13722 | |||
13723 | /* Override any GCC internal prototype to avoid an error. | ||
13724 | Use char because int might match the return type of a GCC | ||
13725 | builtin and then its argument prototype would still apply. */ | ||
13726 | #ifdef __cplusplus | ||
13727 | extern "C" | ||
13728 | #endif | ||
13729 | char DSA_get0_pqg (); | ||
13730 | int | ||
13731 | main () | ||
13732 | { | ||
13733 | return DSA_get0_pqg (); | ||
13734 | ; | ||
13735 | return 0; | ||
13736 | } | ||
13737 | _ACEOF | ||
13738 | for ac_lib in '' crypto; do | ||
13739 | if test -z "$ac_lib"; then | ||
13740 | ac_res="none required" | ||
13741 | else | ||
13742 | ac_res=-l$ac_lib | ||
13743 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13744 | fi | ||
13745 | if ac_fn_c_try_link "$LINENO"; then : | ||
13746 | ac_cv_search_DSA_get0_pqg=$ac_res | ||
13747 | fi | ||
13748 | rm -f core conftest.err conftest.$ac_objext \ | ||
13749 | conftest$ac_exeext | ||
13750 | if ${ac_cv_search_DSA_get0_pqg+:} false; then : | ||
13751 | break | ||
13752 | fi | ||
13753 | done | ||
13754 | if ${ac_cv_search_DSA_get0_pqg+:} false; then : | ||
13755 | |||
13756 | else | ||
13757 | ac_cv_search_DSA_get0_pqg=no | ||
13758 | fi | ||
13759 | rm conftest.$ac_ext | ||
13760 | LIBS=$ac_func_search_save_LIBS | ||
13761 | fi | ||
13762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DSA_get0_pqg" >&5 | ||
13763 | $as_echo "$ac_cv_search_DSA_get0_pqg" >&6; } | ||
13764 | ac_res=$ac_cv_search_DSA_get0_pqg | ||
13765 | if test "$ac_res" != no; then : | ||
13766 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13767 | |||
13768 | $as_echo "#define HAVE_DSA_GET0_PQG 1" >>confdefs.h | ||
13769 | |||
13770 | fi | ||
13771 | |||
13772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DSA_set0_key" >&5 | ||
13773 | $as_echo_n "checking for library containing DSA_set0_key... " >&6; } | ||
13774 | if ${ac_cv_search_DSA_set0_key+:} false; then : | ||
13775 | $as_echo_n "(cached) " >&6 | ||
13776 | else | ||
13777 | ac_func_search_save_LIBS=$LIBS | ||
13778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13779 | /* end confdefs.h. */ | ||
13780 | |||
13781 | /* Override any GCC internal prototype to avoid an error. | ||
13782 | Use char because int might match the return type of a GCC | ||
13783 | builtin and then its argument prototype would still apply. */ | ||
13784 | #ifdef __cplusplus | ||
13785 | extern "C" | ||
13786 | #endif | ||
13787 | char DSA_set0_key (); | ||
13788 | int | ||
13789 | main () | ||
13790 | { | ||
13791 | return DSA_set0_key (); | ||
13792 | ; | ||
13793 | return 0; | ||
13794 | } | ||
13795 | _ACEOF | ||
13796 | for ac_lib in '' crypto; do | ||
13797 | if test -z "$ac_lib"; then | ||
13798 | ac_res="none required" | ||
13799 | else | ||
13800 | ac_res=-l$ac_lib | ||
13801 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13802 | fi | ||
13803 | if ac_fn_c_try_link "$LINENO"; then : | ||
13804 | ac_cv_search_DSA_set0_key=$ac_res | ||
13805 | fi | ||
13806 | rm -f core conftest.err conftest.$ac_objext \ | ||
13807 | conftest$ac_exeext | ||
13808 | if ${ac_cv_search_DSA_set0_key+:} false; then : | ||
13809 | break | ||
13810 | fi | ||
13811 | done | ||
13812 | if ${ac_cv_search_DSA_set0_key+:} false; then : | ||
13813 | |||
13814 | else | ||
13815 | ac_cv_search_DSA_set0_key=no | ||
13816 | fi | ||
13817 | rm conftest.$ac_ext | ||
13818 | LIBS=$ac_func_search_save_LIBS | ||
13819 | fi | ||
13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DSA_set0_key" >&5 | ||
13821 | $as_echo "$ac_cv_search_DSA_set0_key" >&6; } | ||
13822 | ac_res=$ac_cv_search_DSA_set0_key | ||
13823 | if test "$ac_res" != no; then : | ||
13824 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13825 | |||
13826 | $as_echo "#define HAVE_DSA_SET0_KEY 1" >>confdefs.h | ||
13827 | |||
13828 | fi | ||
13829 | |||
13830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DSA_set0_pqg" >&5 | ||
13831 | $as_echo_n "checking for library containing DSA_set0_pqg... " >&6; } | ||
13832 | if ${ac_cv_search_DSA_set0_pqg+:} false; then : | ||
13833 | $as_echo_n "(cached) " >&6 | ||
13834 | else | ||
13835 | ac_func_search_save_LIBS=$LIBS | ||
13836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13837 | /* end confdefs.h. */ | ||
13838 | |||
13839 | /* Override any GCC internal prototype to avoid an error. | ||
13840 | Use char because int might match the return type of a GCC | ||
13841 | builtin and then its argument prototype would still apply. */ | ||
13842 | #ifdef __cplusplus | ||
13843 | extern "C" | ||
13844 | #endif | ||
13845 | char DSA_set0_pqg (); | ||
13846 | int | ||
13847 | main () | ||
13848 | { | ||
13849 | return DSA_set0_pqg (); | ||
13850 | ; | ||
13851 | return 0; | ||
13852 | } | ||
13853 | _ACEOF | ||
13854 | for ac_lib in '' crypto; do | ||
13855 | if test -z "$ac_lib"; then | ||
13856 | ac_res="none required" | ||
13857 | else | ||
13858 | ac_res=-l$ac_lib | ||
13859 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13860 | fi | ||
13861 | if ac_fn_c_try_link "$LINENO"; then : | ||
13862 | ac_cv_search_DSA_set0_pqg=$ac_res | ||
13863 | fi | ||
13864 | rm -f core conftest.err conftest.$ac_objext \ | ||
13865 | conftest$ac_exeext | ||
13866 | if ${ac_cv_search_DSA_set0_pqg+:} false; then : | ||
13867 | break | ||
13868 | fi | ||
13869 | done | ||
13870 | if ${ac_cv_search_DSA_set0_pqg+:} false; then : | ||
13871 | |||
13872 | else | ||
13873 | ac_cv_search_DSA_set0_pqg=no | ||
13874 | fi | ||
13875 | rm conftest.$ac_ext | ||
13876 | LIBS=$ac_func_search_save_LIBS | ||
13877 | fi | ||
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DSA_set0_pqg" >&5 | ||
13879 | $as_echo "$ac_cv_search_DSA_set0_pqg" >&6; } | ||
13880 | ac_res=$ac_cv_search_DSA_set0_pqg | ||
13881 | if test "$ac_res" != no; then : | ||
13882 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13883 | |||
13884 | $as_echo "#define HAVE_DSA_SET0_PQG 1" >>confdefs.h | ||
13885 | |||
13886 | fi | ||
13887 | |||
13888 | |||
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DSA_SIG_get0" >&5 | ||
13890 | $as_echo_n "checking for library containing DSA_SIG_get0... " >&6; } | ||
13891 | if ${ac_cv_search_DSA_SIG_get0+:} false; then : | ||
13892 | $as_echo_n "(cached) " >&6 | ||
13893 | else | ||
13894 | ac_func_search_save_LIBS=$LIBS | ||
13895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13896 | /* end confdefs.h. */ | ||
13897 | |||
13898 | /* Override any GCC internal prototype to avoid an error. | ||
13899 | Use char because int might match the return type of a GCC | ||
13900 | builtin and then its argument prototype would still apply. */ | ||
13901 | #ifdef __cplusplus | ||
13902 | extern "C" | ||
13903 | #endif | ||
13904 | char DSA_SIG_get0 (); | ||
13905 | int | ||
13906 | main () | ||
13907 | { | ||
13908 | return DSA_SIG_get0 (); | ||
13909 | ; | ||
13910 | return 0; | ||
13911 | } | ||
13912 | _ACEOF | ||
13913 | for ac_lib in '' crypto; do | ||
13914 | if test -z "$ac_lib"; then | ||
13915 | ac_res="none required" | ||
13916 | else | ||
13917 | ac_res=-l$ac_lib | ||
13918 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13919 | fi | ||
13920 | if ac_fn_c_try_link "$LINENO"; then : | ||
13921 | ac_cv_search_DSA_SIG_get0=$ac_res | ||
13922 | fi | ||
13923 | rm -f core conftest.err conftest.$ac_objext \ | ||
13924 | conftest$ac_exeext | ||
13925 | if ${ac_cv_search_DSA_SIG_get0+:} false; then : | ||
13926 | break | ||
13927 | fi | ||
13928 | done | ||
13929 | if ${ac_cv_search_DSA_SIG_get0+:} false; then : | ||
13930 | |||
13931 | else | ||
13932 | ac_cv_search_DSA_SIG_get0=no | ||
13933 | fi | ||
13934 | rm conftest.$ac_ext | ||
13935 | LIBS=$ac_func_search_save_LIBS | ||
13936 | fi | ||
13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DSA_SIG_get0" >&5 | ||
13938 | $as_echo "$ac_cv_search_DSA_SIG_get0" >&6; } | ||
13939 | ac_res=$ac_cv_search_DSA_SIG_get0 | ||
13940 | if test "$ac_res" != no; then : | ||
13941 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13942 | |||
13943 | $as_echo "#define HAVE_DSA_SIG_GET0 1" >>confdefs.h | ||
13944 | |||
13945 | fi | ||
13946 | |||
13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DSA_SIG_set0" >&5 | ||
13948 | $as_echo_n "checking for library containing DSA_SIG_set0... " >&6; } | ||
13949 | if ${ac_cv_search_DSA_SIG_set0+:} false; then : | ||
13950 | $as_echo_n "(cached) " >&6 | ||
13951 | else | ||
13952 | ac_func_search_save_LIBS=$LIBS | ||
13953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13954 | /* end confdefs.h. */ | ||
13955 | |||
13956 | /* Override any GCC internal prototype to avoid an error. | ||
13957 | Use char because int might match the return type of a GCC | ||
13958 | builtin and then its argument prototype would still apply. */ | ||
13959 | #ifdef __cplusplus | ||
13960 | extern "C" | ||
13961 | #endif | ||
13962 | char DSA_SIG_set0 (); | ||
13963 | int | ||
13964 | main () | ||
13965 | { | ||
13966 | return DSA_SIG_set0 (); | ||
13967 | ; | ||
13968 | return 0; | ||
13969 | } | ||
13970 | _ACEOF | ||
13971 | for ac_lib in '' crypto; do | ||
13972 | if test -z "$ac_lib"; then | ||
13973 | ac_res="none required" | ||
13974 | else | ||
13975 | ac_res=-l$ac_lib | ||
13976 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13977 | fi | ||
13978 | if ac_fn_c_try_link "$LINENO"; then : | ||
13979 | ac_cv_search_DSA_SIG_set0=$ac_res | ||
13980 | fi | ||
13981 | rm -f core conftest.err conftest.$ac_objext \ | ||
13982 | conftest$ac_exeext | ||
13983 | if ${ac_cv_search_DSA_SIG_set0+:} false; then : | ||
13984 | break | ||
13985 | fi | ||
13986 | done | ||
13987 | if ${ac_cv_search_DSA_SIG_set0+:} false; then : | ||
13988 | |||
13989 | else | ||
13990 | ac_cv_search_DSA_SIG_set0=no | ||
13991 | fi | ||
13992 | rm conftest.$ac_ext | ||
13993 | LIBS=$ac_func_search_save_LIBS | ||
13994 | fi | ||
13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DSA_SIG_set0" >&5 | ||
13996 | $as_echo "$ac_cv_search_DSA_SIG_set0" >&6; } | ||
13997 | ac_res=$ac_cv_search_DSA_SIG_set0 | ||
13998 | if test "$ac_res" != no; then : | ||
13999 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14000 | |||
14001 | $as_echo "#define HAVE_DSA_SIG_SET0 1" >>confdefs.h | ||
14002 | |||
14003 | fi | ||
14004 | |||
14005 | |||
14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ECDSA_SIG_get0" >&5 | ||
14007 | $as_echo_n "checking for library containing ECDSA_SIG_get0... " >&6; } | ||
14008 | if ${ac_cv_search_ECDSA_SIG_get0+:} false; then : | ||
14009 | $as_echo_n "(cached) " >&6 | ||
14010 | else | ||
14011 | ac_func_search_save_LIBS=$LIBS | ||
14012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14013 | /* end confdefs.h. */ | ||
14014 | |||
14015 | /* Override any GCC internal prototype to avoid an error. | ||
14016 | Use char because int might match the return type of a GCC | ||
14017 | builtin and then its argument prototype would still apply. */ | ||
14018 | #ifdef __cplusplus | ||
14019 | extern "C" | ||
14020 | #endif | ||
14021 | char ECDSA_SIG_get0 (); | ||
14022 | int | ||
14023 | main () | ||
14024 | { | ||
14025 | return ECDSA_SIG_get0 (); | ||
14026 | ; | ||
14027 | return 0; | ||
14028 | } | ||
14029 | _ACEOF | ||
14030 | for ac_lib in '' crypto; do | ||
14031 | if test -z "$ac_lib"; then | ||
14032 | ac_res="none required" | ||
14033 | else | ||
14034 | ac_res=-l$ac_lib | ||
14035 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14036 | fi | ||
14037 | if ac_fn_c_try_link "$LINENO"; then : | ||
14038 | ac_cv_search_ECDSA_SIG_get0=$ac_res | ||
14039 | fi | ||
14040 | rm -f core conftest.err conftest.$ac_objext \ | ||
14041 | conftest$ac_exeext | ||
14042 | if ${ac_cv_search_ECDSA_SIG_get0+:} false; then : | ||
14043 | break | ||
14044 | fi | ||
14045 | done | ||
14046 | if ${ac_cv_search_ECDSA_SIG_get0+:} false; then : | ||
14047 | |||
14048 | else | ||
14049 | ac_cv_search_ECDSA_SIG_get0=no | ||
14050 | fi | ||
14051 | rm conftest.$ac_ext | ||
14052 | LIBS=$ac_func_search_save_LIBS | ||
14053 | fi | ||
14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ECDSA_SIG_get0" >&5 | ||
14055 | $as_echo "$ac_cv_search_ECDSA_SIG_get0" >&6; } | ||
14056 | ac_res=$ac_cv_search_ECDSA_SIG_get0 | ||
14057 | if test "$ac_res" != no; then : | ||
14058 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14059 | |||
14060 | $as_echo "#define HAVE_ECDSA_SIG_GET0 1" >>confdefs.h | ||
14061 | |||
14062 | fi | ||
14063 | |||
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ECDSA_SIG_set0" >&5 | ||
14065 | $as_echo_n "checking for library containing ECDSA_SIG_set0... " >&6; } | ||
14066 | if ${ac_cv_search_ECDSA_SIG_set0+:} false; then : | ||
14067 | $as_echo_n "(cached) " >&6 | ||
14068 | else | ||
14069 | ac_func_search_save_LIBS=$LIBS | ||
14070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14071 | /* end confdefs.h. */ | ||
14072 | |||
14073 | /* Override any GCC internal prototype to avoid an error. | ||
14074 | Use char because int might match the return type of a GCC | ||
14075 | builtin and then its argument prototype would still apply. */ | ||
14076 | #ifdef __cplusplus | ||
14077 | extern "C" | ||
14078 | #endif | ||
14079 | char ECDSA_SIG_set0 (); | ||
14080 | int | ||
14081 | main () | ||
14082 | { | ||
14083 | return ECDSA_SIG_set0 (); | ||
14084 | ; | ||
14085 | return 0; | ||
14086 | } | ||
14087 | _ACEOF | ||
14088 | for ac_lib in '' crypto; do | ||
14089 | if test -z "$ac_lib"; then | ||
14090 | ac_res="none required" | ||
14091 | else | ||
14092 | ac_res=-l$ac_lib | ||
14093 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14094 | fi | ||
14095 | if ac_fn_c_try_link "$LINENO"; then : | ||
14096 | ac_cv_search_ECDSA_SIG_set0=$ac_res | ||
14097 | fi | ||
14098 | rm -f core conftest.err conftest.$ac_objext \ | ||
14099 | conftest$ac_exeext | ||
14100 | if ${ac_cv_search_ECDSA_SIG_set0+:} false; then : | ||
14101 | break | ||
14102 | fi | ||
14103 | done | ||
14104 | if ${ac_cv_search_ECDSA_SIG_set0+:} false; then : | ||
14105 | |||
14106 | else | ||
14107 | ac_cv_search_ECDSA_SIG_set0=no | ||
14108 | fi | ||
14109 | rm conftest.$ac_ext | ||
14110 | LIBS=$ac_func_search_save_LIBS | ||
14111 | fi | ||
14112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ECDSA_SIG_set0" >&5 | ||
14113 | $as_echo "$ac_cv_search_ECDSA_SIG_set0" >&6; } | ||
14114 | ac_res=$ac_cv_search_ECDSA_SIG_set0 | ||
14115 | if test "$ac_res" != no; then : | ||
14116 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14117 | |||
14118 | $as_echo "#define HAVE_ECDSA_SIG_SET0 1" >>confdefs.h | ||
14119 | |||
14120 | fi | ||
14121 | |||
14122 | |||
14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_iv" >&5 | ||
14124 | $as_echo_n "checking for library containing EVP_CIPHER_CTX_iv... " >&6; } | ||
14125 | if ${ac_cv_search_EVP_CIPHER_CTX_iv+:} false; then : | ||
14126 | $as_echo_n "(cached) " >&6 | ||
14127 | else | ||
14128 | ac_func_search_save_LIBS=$LIBS | ||
14129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14130 | /* end confdefs.h. */ | ||
14131 | |||
14132 | /* Override any GCC internal prototype to avoid an error. | ||
14133 | Use char because int might match the return type of a GCC | ||
14134 | builtin and then its argument prototype would still apply. */ | ||
14135 | #ifdef __cplusplus | ||
14136 | extern "C" | ||
14137 | #endif | ||
14138 | char EVP_CIPHER_CTX_iv (); | ||
14139 | int | ||
14140 | main () | ||
14141 | { | ||
14142 | return EVP_CIPHER_CTX_iv (); | ||
14143 | ; | ||
14144 | return 0; | ||
14145 | } | ||
14146 | _ACEOF | ||
14147 | for ac_lib in '' crypto; do | ||
14148 | if test -z "$ac_lib"; then | ||
14149 | ac_res="none required" | ||
14150 | else | ||
14151 | ac_res=-l$ac_lib | ||
14152 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14153 | fi | ||
14154 | if ac_fn_c_try_link "$LINENO"; then : | ||
14155 | ac_cv_search_EVP_CIPHER_CTX_iv=$ac_res | ||
14156 | fi | ||
14157 | rm -f core conftest.err conftest.$ac_objext \ | ||
14158 | conftest$ac_exeext | ||
14159 | if ${ac_cv_search_EVP_CIPHER_CTX_iv+:} false; then : | ||
14160 | break | ||
14161 | fi | ||
14162 | done | ||
14163 | if ${ac_cv_search_EVP_CIPHER_CTX_iv+:} false; then : | ||
14164 | |||
14165 | else | ||
14166 | ac_cv_search_EVP_CIPHER_CTX_iv=no | ||
14167 | fi | ||
14168 | rm conftest.$ac_ext | ||
14169 | LIBS=$ac_func_search_save_LIBS | ||
14170 | fi | ||
14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_iv" >&5 | ||
14172 | $as_echo "$ac_cv_search_EVP_CIPHER_CTX_iv" >&6; } | ||
14173 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_iv | ||
14174 | if test "$ac_res" != no; then : | ||
14175 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14176 | |||
14177 | $as_echo "#define HAVE_EVP_CIPHER_CTX_IV 1" >>confdefs.h | ||
14178 | |||
14179 | fi | ||
14180 | |||
14181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_iv_noconst" >&5 | ||
14182 | $as_echo_n "checking for library containing EVP_CIPHER_CTX_iv_noconst... " >&6; } | ||
14183 | if ${ac_cv_search_EVP_CIPHER_CTX_iv_noconst+:} false; then : | ||
14184 | $as_echo_n "(cached) " >&6 | ||
14185 | else | ||
14186 | ac_func_search_save_LIBS=$LIBS | ||
14187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14188 | /* end confdefs.h. */ | ||
14189 | |||
14190 | /* Override any GCC internal prototype to avoid an error. | ||
14191 | Use char because int might match the return type of a GCC | ||
14192 | builtin and then its argument prototype would still apply. */ | ||
14193 | #ifdef __cplusplus | ||
14194 | extern "C" | ||
14195 | #endif | ||
14196 | char EVP_CIPHER_CTX_iv_noconst (); | ||
14197 | int | ||
14198 | main () | ||
14199 | { | ||
14200 | return EVP_CIPHER_CTX_iv_noconst (); | ||
14201 | ; | ||
14202 | return 0; | ||
14203 | } | ||
14204 | _ACEOF | ||
14205 | for ac_lib in '' crypto; do | ||
14206 | if test -z "$ac_lib"; then | ||
14207 | ac_res="none required" | ||
14208 | else | ||
14209 | ac_res=-l$ac_lib | ||
14210 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14211 | fi | ||
14212 | if ac_fn_c_try_link "$LINENO"; then : | ||
14213 | ac_cv_search_EVP_CIPHER_CTX_iv_noconst=$ac_res | ||
14214 | fi | ||
14215 | rm -f core conftest.err conftest.$ac_objext \ | ||
14216 | conftest$ac_exeext | ||
14217 | if ${ac_cv_search_EVP_CIPHER_CTX_iv_noconst+:} false; then : | ||
14218 | break | ||
14219 | fi | ||
14220 | done | ||
14221 | if ${ac_cv_search_EVP_CIPHER_CTX_iv_noconst+:} false; then : | ||
14222 | |||
14223 | else | ||
14224 | ac_cv_search_EVP_CIPHER_CTX_iv_noconst=no | ||
14225 | fi | ||
14226 | rm conftest.$ac_ext | ||
14227 | LIBS=$ac_func_search_save_LIBS | ||
14228 | fi | ||
14229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_iv_noconst" >&5 | ||
14230 | $as_echo "$ac_cv_search_EVP_CIPHER_CTX_iv_noconst" >&6; } | ||
14231 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_iv_noconst | ||
14232 | if test "$ac_res" != no; then : | ||
14233 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14234 | |||
14235 | $as_echo "#define HAVE_EVP_CIPHER_CTX_IV_NOCONST 1" >>confdefs.h | ||
14236 | |||
14237 | fi | ||
14238 | |||
14239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_get_iv" >&5 | ||
14240 | $as_echo_n "checking for library containing EVP_CIPHER_CTX_get_iv... " >&6; } | ||
14241 | if ${ac_cv_search_EVP_CIPHER_CTX_get_iv+:} false; then : | ||
14242 | $as_echo_n "(cached) " >&6 | ||
14243 | else | ||
14244 | ac_func_search_save_LIBS=$LIBS | ||
14245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14246 | /* end confdefs.h. */ | ||
14247 | |||
14248 | /* Override any GCC internal prototype to avoid an error. | ||
14249 | Use char because int might match the return type of a GCC | ||
14250 | builtin and then its argument prototype would still apply. */ | ||
14251 | #ifdef __cplusplus | ||
14252 | extern "C" | ||
14253 | #endif | ||
14254 | char EVP_CIPHER_CTX_get_iv (); | ||
14255 | int | ||
14256 | main () | ||
14257 | { | ||
14258 | return EVP_CIPHER_CTX_get_iv (); | ||
14259 | ; | ||
14260 | return 0; | ||
14261 | } | ||
14262 | _ACEOF | ||
14263 | for ac_lib in '' crypto; do | ||
14264 | if test -z "$ac_lib"; then | ||
14265 | ac_res="none required" | ||
14266 | else | ||
14267 | ac_res=-l$ac_lib | ||
14268 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14269 | fi | ||
14270 | if ac_fn_c_try_link "$LINENO"; then : | ||
14271 | ac_cv_search_EVP_CIPHER_CTX_get_iv=$ac_res | ||
14272 | fi | ||
14273 | rm -f core conftest.err conftest.$ac_objext \ | ||
14274 | conftest$ac_exeext | ||
14275 | if ${ac_cv_search_EVP_CIPHER_CTX_get_iv+:} false; then : | ||
14276 | break | ||
14277 | fi | ||
14278 | done | ||
14279 | if ${ac_cv_search_EVP_CIPHER_CTX_get_iv+:} false; then : | ||
14280 | |||
14281 | else | ||
14282 | ac_cv_search_EVP_CIPHER_CTX_get_iv=no | ||
14283 | fi | ||
14284 | rm conftest.$ac_ext | ||
14285 | LIBS=$ac_func_search_save_LIBS | ||
14286 | fi | ||
14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_get_iv" >&5 | ||
14288 | $as_echo "$ac_cv_search_EVP_CIPHER_CTX_get_iv" >&6; } | ||
14289 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_get_iv | ||
14290 | if test "$ac_res" != no; then : | ||
14291 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14292 | |||
14293 | $as_echo "#define HAVE_EVP_CIPHER_CTX_GET_IV 1" >>confdefs.h | ||
14294 | |||
14295 | fi | ||
14296 | |||
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_set_iv" >&5 | ||
14298 | $as_echo_n "checking for library containing EVP_CIPHER_CTX_set_iv... " >&6; } | ||
14299 | if ${ac_cv_search_EVP_CIPHER_CTX_set_iv+:} false; then : | ||
14300 | $as_echo_n "(cached) " >&6 | ||
14301 | else | ||
14302 | ac_func_search_save_LIBS=$LIBS | ||
14303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14304 | /* end confdefs.h. */ | ||
14305 | |||
14306 | /* Override any GCC internal prototype to avoid an error. | ||
14307 | Use char because int might match the return type of a GCC | ||
14308 | builtin and then its argument prototype would still apply. */ | ||
14309 | #ifdef __cplusplus | ||
14310 | extern "C" | ||
14311 | #endif | ||
14312 | char EVP_CIPHER_CTX_set_iv (); | ||
14313 | int | ||
14314 | main () | ||
14315 | { | ||
14316 | return EVP_CIPHER_CTX_set_iv (); | ||
14317 | ; | ||
14318 | return 0; | ||
14319 | } | ||
14320 | _ACEOF | ||
14321 | for ac_lib in '' crypto; do | ||
14322 | if test -z "$ac_lib"; then | ||
14323 | ac_res="none required" | ||
14324 | else | ||
14325 | ac_res=-l$ac_lib | ||
14326 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14327 | fi | ||
14328 | if ac_fn_c_try_link "$LINENO"; then : | ||
14329 | ac_cv_search_EVP_CIPHER_CTX_set_iv=$ac_res | ||
14330 | fi | ||
14331 | rm -f core conftest.err conftest.$ac_objext \ | ||
14332 | conftest$ac_exeext | ||
14333 | if ${ac_cv_search_EVP_CIPHER_CTX_set_iv+:} false; then : | ||
14334 | break | ||
14335 | fi | ||
14336 | done | ||
14337 | if ${ac_cv_search_EVP_CIPHER_CTX_set_iv+:} false; then : | ||
14338 | |||
14339 | else | ||
14340 | ac_cv_search_EVP_CIPHER_CTX_set_iv=no | ||
14341 | fi | ||
14342 | rm conftest.$ac_ext | ||
14343 | LIBS=$ac_func_search_save_LIBS | ||
14344 | fi | ||
14345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_set_iv" >&5 | ||
14346 | $as_echo "$ac_cv_search_EVP_CIPHER_CTX_set_iv" >&6; } | ||
14347 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_set_iv | ||
14348 | if test "$ac_res" != no; then : | ||
14349 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14350 | |||
14351 | $as_echo "#define HAVE_EVP_CIPHER_CTX_GET_IV 1" >>confdefs.h | ||
14352 | |||
14353 | fi | ||
14354 | |||
14355 | |||
14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_get0_crt_params" >&5 | ||
14357 | $as_echo_n "checking for library containing RSA_get0_crt_params... " >&6; } | ||
14358 | if ${ac_cv_search_RSA_get0_crt_params+:} false; then : | ||
14359 | $as_echo_n "(cached) " >&6 | ||
14360 | else | ||
14361 | ac_func_search_save_LIBS=$LIBS | ||
14362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14363 | /* end confdefs.h. */ | ||
14364 | |||
14365 | /* Override any GCC internal prototype to avoid an error. | ||
14366 | Use char because int might match the return type of a GCC | ||
14367 | builtin and then its argument prototype would still apply. */ | ||
14368 | #ifdef __cplusplus | ||
14369 | extern "C" | ||
14370 | #endif | ||
14371 | char RSA_get0_crt_params (); | ||
14372 | int | ||
14373 | main () | ||
14374 | { | ||
14375 | return RSA_get0_crt_params (); | ||
14376 | ; | ||
14377 | return 0; | ||
14378 | } | ||
14379 | _ACEOF | ||
14380 | for ac_lib in '' crypto; do | ||
14381 | if test -z "$ac_lib"; then | ||
14382 | ac_res="none required" | ||
14383 | else | ||
14384 | ac_res=-l$ac_lib | ||
14385 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14386 | fi | ||
14387 | if ac_fn_c_try_link "$LINENO"; then : | ||
14388 | ac_cv_search_RSA_get0_crt_params=$ac_res | ||
14389 | fi | ||
14390 | rm -f core conftest.err conftest.$ac_objext \ | ||
14391 | conftest$ac_exeext | ||
14392 | if ${ac_cv_search_RSA_get0_crt_params+:} false; then : | ||
14393 | break | ||
14394 | fi | ||
14395 | done | ||
14396 | if ${ac_cv_search_RSA_get0_crt_params+:} false; then : | ||
14397 | |||
14398 | else | ||
14399 | ac_cv_search_RSA_get0_crt_params=no | ||
14400 | fi | ||
14401 | rm conftest.$ac_ext | ||
14402 | LIBS=$ac_func_search_save_LIBS | ||
14403 | fi | ||
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_get0_crt_params" >&5 | ||
14405 | $as_echo "$ac_cv_search_RSA_get0_crt_params" >&6; } | ||
14406 | ac_res=$ac_cv_search_RSA_get0_crt_params | ||
14407 | if test "$ac_res" != no; then : | ||
14408 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14409 | |||
14410 | $as_echo "#define HAVE_RSA_GET0_CRT_PARAMS 1" >>confdefs.h | ||
14411 | |||
14412 | fi | ||
14413 | |||
14414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_get0_factors" >&5 | ||
14415 | $as_echo_n "checking for library containing RSA_get0_factors... " >&6; } | ||
14416 | if ${ac_cv_search_RSA_get0_factors+:} false; then : | ||
14417 | $as_echo_n "(cached) " >&6 | ||
14418 | else | ||
14419 | ac_func_search_save_LIBS=$LIBS | ||
14420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14421 | /* end confdefs.h. */ | ||
14422 | |||
14423 | /* Override any GCC internal prototype to avoid an error. | ||
14424 | Use char because int might match the return type of a GCC | ||
14425 | builtin and then its argument prototype would still apply. */ | ||
14426 | #ifdef __cplusplus | ||
14427 | extern "C" | ||
14428 | #endif | ||
14429 | char RSA_get0_factors (); | ||
14430 | int | ||
14431 | main () | ||
14432 | { | ||
14433 | return RSA_get0_factors (); | ||
14434 | ; | ||
14435 | return 0; | ||
14436 | } | ||
14437 | _ACEOF | ||
14438 | for ac_lib in '' crypto; do | ||
14439 | if test -z "$ac_lib"; then | ||
14440 | ac_res="none required" | ||
14441 | else | ||
14442 | ac_res=-l$ac_lib | ||
14443 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14444 | fi | ||
14445 | if ac_fn_c_try_link "$LINENO"; then : | ||
14446 | ac_cv_search_RSA_get0_factors=$ac_res | ||
14447 | fi | ||
14448 | rm -f core conftest.err conftest.$ac_objext \ | ||
14449 | conftest$ac_exeext | ||
14450 | if ${ac_cv_search_RSA_get0_factors+:} false; then : | ||
14451 | break | ||
14452 | fi | ||
14453 | done | ||
14454 | if ${ac_cv_search_RSA_get0_factors+:} false; then : | ||
14455 | |||
14456 | else | ||
14457 | ac_cv_search_RSA_get0_factors=no | ||
14458 | fi | ||
14459 | rm conftest.$ac_ext | ||
14460 | LIBS=$ac_func_search_save_LIBS | ||
14461 | fi | ||
14462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_get0_factors" >&5 | ||
14463 | $as_echo "$ac_cv_search_RSA_get0_factors" >&6; } | ||
14464 | ac_res=$ac_cv_search_RSA_get0_factors | ||
14465 | if test "$ac_res" != no; then : | ||
14466 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14467 | |||
14468 | $as_echo "#define HAVE_RSA_GET0_FACTORS 1" >>confdefs.h | ||
14469 | |||
14470 | fi | ||
14471 | |||
14472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_get0_key" >&5 | ||
14473 | $as_echo_n "checking for library containing RSA_get0_key... " >&6; } | ||
14474 | if ${ac_cv_search_RSA_get0_key+:} false; then : | ||
14475 | $as_echo_n "(cached) " >&6 | ||
14476 | else | ||
14477 | ac_func_search_save_LIBS=$LIBS | ||
14478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14479 | /* end confdefs.h. */ | ||
14480 | |||
14481 | /* Override any GCC internal prototype to avoid an error. | ||
14482 | Use char because int might match the return type of a GCC | ||
14483 | builtin and then its argument prototype would still apply. */ | ||
14484 | #ifdef __cplusplus | ||
14485 | extern "C" | ||
14486 | #endif | ||
14487 | char RSA_get0_key (); | ||
14488 | int | ||
14489 | main () | ||
14490 | { | ||
14491 | return RSA_get0_key (); | ||
14492 | ; | ||
14493 | return 0; | ||
14494 | } | ||
14495 | _ACEOF | ||
14496 | for ac_lib in '' crypto; do | ||
14497 | if test -z "$ac_lib"; then | ||
14498 | ac_res="none required" | ||
14499 | else | ||
14500 | ac_res=-l$ac_lib | ||
14501 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14502 | fi | ||
14503 | if ac_fn_c_try_link "$LINENO"; then : | ||
14504 | ac_cv_search_RSA_get0_key=$ac_res | ||
14505 | fi | ||
14506 | rm -f core conftest.err conftest.$ac_objext \ | ||
14507 | conftest$ac_exeext | ||
14508 | if ${ac_cv_search_RSA_get0_key+:} false; then : | ||
14509 | break | ||
14510 | fi | ||
14511 | done | ||
14512 | if ${ac_cv_search_RSA_get0_key+:} false; then : | ||
14513 | |||
14514 | else | ||
14515 | ac_cv_search_RSA_get0_key=no | ||
14516 | fi | ||
14517 | rm conftest.$ac_ext | ||
14518 | LIBS=$ac_func_search_save_LIBS | ||
14519 | fi | ||
14520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_get0_key" >&5 | ||
14521 | $as_echo "$ac_cv_search_RSA_get0_key" >&6; } | ||
14522 | ac_res=$ac_cv_search_RSA_get0_key | ||
14523 | if test "$ac_res" != no; then : | ||
14524 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14525 | |||
14526 | $as_echo "#define HAVE_RSA_GET0_KEY 1" >>confdefs.h | ||
14527 | |||
14528 | fi | ||
14529 | |||
14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_set0_crt_params" >&5 | ||
14531 | $as_echo_n "checking for library containing RSA_set0_crt_params... " >&6; } | ||
14532 | if ${ac_cv_search_RSA_set0_crt_params+:} false; then : | ||
14533 | $as_echo_n "(cached) " >&6 | ||
14534 | else | ||
14535 | ac_func_search_save_LIBS=$LIBS | ||
14536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14537 | /* end confdefs.h. */ | ||
14538 | |||
14539 | /* Override any GCC internal prototype to avoid an error. | ||
14540 | Use char because int might match the return type of a GCC | ||
14541 | builtin and then its argument prototype would still apply. */ | ||
14542 | #ifdef __cplusplus | ||
14543 | extern "C" | ||
14544 | #endif | ||
14545 | char RSA_set0_crt_params (); | ||
14546 | int | ||
14547 | main () | ||
14548 | { | ||
14549 | return RSA_set0_crt_params (); | ||
14550 | ; | ||
14551 | return 0; | ||
14552 | } | ||
14553 | _ACEOF | ||
14554 | for ac_lib in '' crypto; do | ||
14555 | if test -z "$ac_lib"; then | ||
14556 | ac_res="none required" | ||
14557 | else | ||
14558 | ac_res=-l$ac_lib | ||
14559 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14560 | fi | ||
14561 | if ac_fn_c_try_link "$LINENO"; then : | ||
14562 | ac_cv_search_RSA_set0_crt_params=$ac_res | ||
14563 | fi | ||
14564 | rm -f core conftest.err conftest.$ac_objext \ | ||
14565 | conftest$ac_exeext | ||
14566 | if ${ac_cv_search_RSA_set0_crt_params+:} false; then : | ||
14567 | break | ||
14568 | fi | ||
14569 | done | ||
14570 | if ${ac_cv_search_RSA_set0_crt_params+:} false; then : | ||
14571 | |||
14572 | else | ||
14573 | ac_cv_search_RSA_set0_crt_params=no | ||
14574 | fi | ||
14575 | rm conftest.$ac_ext | ||
14576 | LIBS=$ac_func_search_save_LIBS | ||
14577 | fi | ||
14578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_set0_crt_params" >&5 | ||
14579 | $as_echo "$ac_cv_search_RSA_set0_crt_params" >&6; } | ||
14580 | ac_res=$ac_cv_search_RSA_set0_crt_params | ||
14581 | if test "$ac_res" != no; then : | ||
14582 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14583 | |||
14584 | $as_echo "#define HAVE_RSA_SET0_CRT_PARAMS 1" >>confdefs.h | ||
14585 | |||
14586 | fi | ||
14587 | |||
14588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_set0_factors" >&5 | ||
14589 | $as_echo_n "checking for library containing RSA_set0_factors... " >&6; } | ||
14590 | if ${ac_cv_search_RSA_set0_factors+:} false; then : | ||
14591 | $as_echo_n "(cached) " >&6 | ||
14592 | else | ||
14593 | ac_func_search_save_LIBS=$LIBS | ||
14594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14595 | /* end confdefs.h. */ | ||
14596 | |||
14597 | /* Override any GCC internal prototype to avoid an error. | ||
14598 | Use char because int might match the return type of a GCC | ||
14599 | builtin and then its argument prototype would still apply. */ | ||
14600 | #ifdef __cplusplus | ||
14601 | extern "C" | ||
14602 | #endif | ||
14603 | char RSA_set0_factors (); | ||
14604 | int | ||
14605 | main () | ||
14606 | { | ||
14607 | return RSA_set0_factors (); | ||
14608 | ; | ||
14609 | return 0; | ||
14610 | } | ||
14611 | _ACEOF | ||
14612 | for ac_lib in '' crypto; do | ||
14613 | if test -z "$ac_lib"; then | ||
14614 | ac_res="none required" | ||
14615 | else | ||
14616 | ac_res=-l$ac_lib | ||
14617 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14618 | fi | ||
14619 | if ac_fn_c_try_link "$LINENO"; then : | ||
14620 | ac_cv_search_RSA_set0_factors=$ac_res | ||
14621 | fi | ||
14622 | rm -f core conftest.err conftest.$ac_objext \ | ||
14623 | conftest$ac_exeext | ||
14624 | if ${ac_cv_search_RSA_set0_factors+:} false; then : | ||
14625 | break | ||
14626 | fi | ||
14627 | done | ||
14628 | if ${ac_cv_search_RSA_set0_factors+:} false; then : | ||
14629 | |||
14630 | else | ||
14631 | ac_cv_search_RSA_set0_factors=no | ||
14632 | fi | ||
14633 | rm conftest.$ac_ext | ||
14634 | LIBS=$ac_func_search_save_LIBS | ||
14635 | fi | ||
14636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_set0_factors" >&5 | ||
14637 | $as_echo "$ac_cv_search_RSA_set0_factors" >&6; } | ||
14638 | ac_res=$ac_cv_search_RSA_set0_factors | ||
14639 | if test "$ac_res" != no; then : | ||
14640 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14641 | |||
14642 | $as_echo "#define HAVE_RSA_SET0_FACTORS 1" >>confdefs.h | ||
14643 | |||
14644 | fi | ||
14645 | |||
14646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_set0_key" >&5 | ||
14647 | $as_echo_n "checking for library containing RSA_set0_key... " >&6; } | ||
14648 | if ${ac_cv_search_RSA_set0_key+:} false; then : | ||
14649 | $as_echo_n "(cached) " >&6 | ||
14650 | else | ||
14651 | ac_func_search_save_LIBS=$LIBS | ||
14652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14653 | /* end confdefs.h. */ | ||
14654 | |||
14655 | /* Override any GCC internal prototype to avoid an error. | ||
14656 | Use char because int might match the return type of a GCC | ||
14657 | builtin and then its argument prototype would still apply. */ | ||
14658 | #ifdef __cplusplus | ||
14659 | extern "C" | ||
14660 | #endif | ||
14661 | char RSA_set0_key (); | ||
14662 | int | ||
14663 | main () | ||
14664 | { | ||
14665 | return RSA_set0_key (); | ||
14666 | ; | ||
14667 | return 0; | ||
14668 | } | ||
14669 | _ACEOF | ||
14670 | for ac_lib in '' crypto; do | ||
14671 | if test -z "$ac_lib"; then | ||
14672 | ac_res="none required" | ||
14673 | else | ||
14674 | ac_res=-l$ac_lib | ||
14675 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14676 | fi | ||
14677 | if ac_fn_c_try_link "$LINENO"; then : | ||
14678 | ac_cv_search_RSA_set0_key=$ac_res | ||
14679 | fi | ||
14680 | rm -f core conftest.err conftest.$ac_objext \ | ||
14681 | conftest$ac_exeext | ||
14682 | if ${ac_cv_search_RSA_set0_key+:} false; then : | ||
14683 | break | ||
14684 | fi | ||
14685 | done | ||
14686 | if ${ac_cv_search_RSA_set0_key+:} false; then : | ||
14687 | |||
14688 | else | ||
14689 | ac_cv_search_RSA_set0_key=no | ||
14690 | fi | ||
14691 | rm conftest.$ac_ext | ||
14692 | LIBS=$ac_func_search_save_LIBS | ||
14693 | fi | ||
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_set0_key" >&5 | ||
14695 | $as_echo "$ac_cv_search_RSA_set0_key" >&6; } | ||
14696 | ac_res=$ac_cv_search_RSA_set0_key | ||
14697 | if test "$ac_res" != no; then : | ||
14698 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14699 | |||
14700 | $as_echo "#define HAVE_RSA_SET0_KEY 1" >>confdefs.h | ||
14701 | |||
14702 | fi | ||
14703 | |||
14704 | |||
14705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_meth_free" >&5 | ||
14706 | $as_echo_n "checking for library containing RSA_meth_free... " >&6; } | ||
14707 | if ${ac_cv_search_RSA_meth_free+:} false; then : | ||
14708 | $as_echo_n "(cached) " >&6 | ||
14709 | else | ||
14710 | ac_func_search_save_LIBS=$LIBS | ||
14711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14712 | /* end confdefs.h. */ | ||
14713 | |||
14714 | /* Override any GCC internal prototype to avoid an error. | ||
14715 | Use char because int might match the return type of a GCC | ||
14716 | builtin and then its argument prototype would still apply. */ | ||
14717 | #ifdef __cplusplus | ||
14718 | extern "C" | ||
14719 | #endif | ||
14720 | char RSA_meth_free (); | ||
14721 | int | ||
14722 | main () | ||
14723 | { | ||
14724 | return RSA_meth_free (); | ||
14725 | ; | ||
14726 | return 0; | ||
14727 | } | ||
14728 | _ACEOF | ||
14729 | for ac_lib in '' crypto; do | ||
14730 | if test -z "$ac_lib"; then | ||
14731 | ac_res="none required" | ||
14732 | else | ||
14733 | ac_res=-l$ac_lib | ||
14734 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14735 | fi | ||
14736 | if ac_fn_c_try_link "$LINENO"; then : | ||
14737 | ac_cv_search_RSA_meth_free=$ac_res | ||
14738 | fi | ||
14739 | rm -f core conftest.err conftest.$ac_objext \ | ||
14740 | conftest$ac_exeext | ||
14741 | if ${ac_cv_search_RSA_meth_free+:} false; then : | ||
14742 | break | ||
14743 | fi | ||
14744 | done | ||
14745 | if ${ac_cv_search_RSA_meth_free+:} false; then : | ||
14746 | |||
14747 | else | ||
14748 | ac_cv_search_RSA_meth_free=no | ||
14749 | fi | ||
14750 | rm conftest.$ac_ext | ||
14751 | LIBS=$ac_func_search_save_LIBS | ||
14752 | fi | ||
14753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_meth_free" >&5 | ||
14754 | $as_echo "$ac_cv_search_RSA_meth_free" >&6; } | ||
14755 | ac_res=$ac_cv_search_RSA_meth_free | ||
14756 | if test "$ac_res" != no; then : | ||
14757 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14758 | |||
14759 | $as_echo "#define HAVE_RSA_METH_FREE 1" >>confdefs.h | ||
14760 | |||
14761 | fi | ||
14762 | |||
14763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_meth_dup" >&5 | ||
14764 | $as_echo_n "checking for library containing RSA_meth_dup... " >&6; } | ||
14765 | if ${ac_cv_search_RSA_meth_dup+:} false; then : | ||
14766 | $as_echo_n "(cached) " >&6 | ||
14767 | else | ||
14768 | ac_func_search_save_LIBS=$LIBS | ||
14769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14770 | /* end confdefs.h. */ | ||
14771 | |||
14772 | /* Override any GCC internal prototype to avoid an error. | ||
14773 | Use char because int might match the return type of a GCC | ||
14774 | builtin and then its argument prototype would still apply. */ | ||
14775 | #ifdef __cplusplus | ||
14776 | extern "C" | ||
14777 | #endif | ||
14778 | char RSA_meth_dup (); | ||
14779 | int | ||
14780 | main () | ||
14781 | { | ||
14782 | return RSA_meth_dup (); | ||
14783 | ; | ||
14784 | return 0; | ||
14785 | } | ||
14786 | _ACEOF | ||
14787 | for ac_lib in '' crypto; do | ||
14788 | if test -z "$ac_lib"; then | ||
14789 | ac_res="none required" | ||
14790 | else | ||
14791 | ac_res=-l$ac_lib | ||
14792 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14793 | fi | ||
14794 | if ac_fn_c_try_link "$LINENO"; then : | ||
14795 | ac_cv_search_RSA_meth_dup=$ac_res | ||
14796 | fi | ||
14797 | rm -f core conftest.err conftest.$ac_objext \ | ||
14798 | conftest$ac_exeext | ||
14799 | if ${ac_cv_search_RSA_meth_dup+:} false; then : | ||
14800 | break | ||
14801 | fi | ||
14802 | done | ||
14803 | if ${ac_cv_search_RSA_meth_dup+:} false; then : | ||
14804 | |||
14805 | else | ||
14806 | ac_cv_search_RSA_meth_dup=no | ||
14807 | fi | ||
14808 | rm conftest.$ac_ext | ||
14809 | LIBS=$ac_func_search_save_LIBS | ||
14810 | fi | ||
14811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_meth_dup" >&5 | ||
14812 | $as_echo "$ac_cv_search_RSA_meth_dup" >&6; } | ||
14813 | ac_res=$ac_cv_search_RSA_meth_dup | ||
14814 | if test "$ac_res" != no; then : | ||
14815 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14816 | |||
14817 | $as_echo "#define HAVE_RSA_METH_DUP 1" >>confdefs.h | ||
14818 | |||
14819 | fi | ||
14820 | |||
14821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_meth_set1_name" >&5 | ||
14822 | $as_echo_n "checking for library containing RSA_meth_set1_name... " >&6; } | ||
14823 | if ${ac_cv_search_RSA_meth_set1_name+:} false; then : | ||
14824 | $as_echo_n "(cached) " >&6 | ||
14825 | else | ||
14826 | ac_func_search_save_LIBS=$LIBS | ||
14827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14828 | /* end confdefs.h. */ | ||
14829 | |||
14830 | /* Override any GCC internal prototype to avoid an error. | ||
14831 | Use char because int might match the return type of a GCC | ||
14832 | builtin and then its argument prototype would still apply. */ | ||
14833 | #ifdef __cplusplus | ||
14834 | extern "C" | ||
14835 | #endif | ||
14836 | char RSA_meth_set1_name (); | ||
14837 | int | ||
14838 | main () | ||
14839 | { | ||
14840 | return RSA_meth_set1_name (); | ||
14841 | ; | ||
14842 | return 0; | ||
14843 | } | ||
14844 | _ACEOF | ||
14845 | for ac_lib in '' crypto; do | ||
14846 | if test -z "$ac_lib"; then | ||
14847 | ac_res="none required" | ||
14848 | else | ||
14849 | ac_res=-l$ac_lib | ||
14850 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14851 | fi | ||
14852 | if ac_fn_c_try_link "$LINENO"; then : | ||
14853 | ac_cv_search_RSA_meth_set1_name=$ac_res | ||
14854 | fi | ||
14855 | rm -f core conftest.err conftest.$ac_objext \ | ||
14856 | conftest$ac_exeext | ||
14857 | if ${ac_cv_search_RSA_meth_set1_name+:} false; then : | ||
14858 | break | ||
14859 | fi | ||
14860 | done | ||
14861 | if ${ac_cv_search_RSA_meth_set1_name+:} false; then : | ||
14862 | |||
14863 | else | ||
14864 | ac_cv_search_RSA_meth_set1_name=no | ||
14865 | fi | ||
14866 | rm conftest.$ac_ext | ||
14867 | LIBS=$ac_func_search_save_LIBS | ||
14868 | fi | ||
14869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_meth_set1_name" >&5 | ||
14870 | $as_echo "$ac_cv_search_RSA_meth_set1_name" >&6; } | ||
14871 | ac_res=$ac_cv_search_RSA_meth_set1_name | ||
14872 | if test "$ac_res" != no; then : | ||
14873 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14874 | |||
14875 | $as_echo "#define HAVE_RSA_METH_SET1_NAME 1" >>confdefs.h | ||
14876 | |||
14877 | fi | ||
14878 | |||
14879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_meth_get_finish" >&5 | ||
14880 | $as_echo_n "checking for library containing RSA_meth_get_finish... " >&6; } | ||
14881 | if ${ac_cv_search_RSA_meth_get_finish+:} false; then : | ||
14882 | $as_echo_n "(cached) " >&6 | ||
14883 | else | ||
14884 | ac_func_search_save_LIBS=$LIBS | ||
14885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14886 | /* end confdefs.h. */ | ||
14887 | |||
14888 | /* Override any GCC internal prototype to avoid an error. | ||
14889 | Use char because int might match the return type of a GCC | ||
14890 | builtin and then its argument prototype would still apply. */ | ||
14891 | #ifdef __cplusplus | ||
14892 | extern "C" | ||
14893 | #endif | ||
14894 | char RSA_meth_get_finish (); | ||
14895 | int | ||
14896 | main () | ||
14897 | { | ||
14898 | return RSA_meth_get_finish (); | ||
14899 | ; | ||
14900 | return 0; | ||
14901 | } | ||
14902 | _ACEOF | ||
14903 | for ac_lib in '' crypto; do | ||
14904 | if test -z "$ac_lib"; then | ||
14905 | ac_res="none required" | ||
14906 | else | ||
14907 | ac_res=-l$ac_lib | ||
14908 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14909 | fi | ||
14910 | if ac_fn_c_try_link "$LINENO"; then : | ||
14911 | ac_cv_search_RSA_meth_get_finish=$ac_res | ||
14912 | fi | ||
14913 | rm -f core conftest.err conftest.$ac_objext \ | ||
14914 | conftest$ac_exeext | ||
14915 | if ${ac_cv_search_RSA_meth_get_finish+:} false; then : | ||
14916 | break | ||
14917 | fi | ||
14918 | done | ||
14919 | if ${ac_cv_search_RSA_meth_get_finish+:} false; then : | ||
14920 | |||
14921 | else | ||
14922 | ac_cv_search_RSA_meth_get_finish=no | ||
14923 | fi | ||
14924 | rm conftest.$ac_ext | ||
14925 | LIBS=$ac_func_search_save_LIBS | ||
14926 | fi | ||
14927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_meth_get_finish" >&5 | ||
14928 | $as_echo "$ac_cv_search_RSA_meth_get_finish" >&6; } | ||
14929 | ac_res=$ac_cv_search_RSA_meth_get_finish | ||
14930 | if test "$ac_res" != no; then : | ||
14931 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14932 | |||
14933 | $as_echo "#define HAVE_RSA_METH_GET_FINISH 1" >>confdefs.h | ||
14934 | |||
14935 | fi | ||
14936 | |||
14937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_meth_set_priv_enc" >&5 | ||
14938 | $as_echo_n "checking for library containing RSA_meth_set_priv_enc... " >&6; } | ||
14939 | if ${ac_cv_search_RSA_meth_set_priv_enc+:} false; then : | ||
14940 | $as_echo_n "(cached) " >&6 | ||
14941 | else | ||
14942 | ac_func_search_save_LIBS=$LIBS | ||
14943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14944 | /* end confdefs.h. */ | ||
14945 | |||
14946 | /* Override any GCC internal prototype to avoid an error. | ||
14947 | Use char because int might match the return type of a GCC | ||
14948 | builtin and then its argument prototype would still apply. */ | ||
14949 | #ifdef __cplusplus | ||
14950 | extern "C" | ||
14951 | #endif | ||
14952 | char RSA_meth_set_priv_enc (); | ||
14953 | int | ||
14954 | main () | ||
14955 | { | ||
14956 | return RSA_meth_set_priv_enc (); | ||
14957 | ; | ||
14958 | return 0; | ||
14959 | } | ||
14960 | _ACEOF | ||
14961 | for ac_lib in '' crypto; do | ||
14962 | if test -z "$ac_lib"; then | ||
14963 | ac_res="none required" | ||
14964 | else | ||
14965 | ac_res=-l$ac_lib | ||
14966 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14967 | fi | ||
14968 | if ac_fn_c_try_link "$LINENO"; then : | ||
14969 | ac_cv_search_RSA_meth_set_priv_enc=$ac_res | ||
14970 | fi | ||
14971 | rm -f core conftest.err conftest.$ac_objext \ | ||
14972 | conftest$ac_exeext | ||
14973 | if ${ac_cv_search_RSA_meth_set_priv_enc+:} false; then : | ||
14974 | break | ||
14975 | fi | ||
14976 | done | ||
14977 | if ${ac_cv_search_RSA_meth_set_priv_enc+:} false; then : | ||
14978 | |||
14979 | else | ||
14980 | ac_cv_search_RSA_meth_set_priv_enc=no | ||
14981 | fi | ||
14982 | rm conftest.$ac_ext | ||
14983 | LIBS=$ac_func_search_save_LIBS | ||
14984 | fi | ||
14985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_meth_set_priv_enc" >&5 | ||
14986 | $as_echo "$ac_cv_search_RSA_meth_set_priv_enc" >&6; } | ||
14987 | ac_res=$ac_cv_search_RSA_meth_set_priv_enc | ||
14988 | if test "$ac_res" != no; then : | ||
14989 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14990 | |||
14991 | $as_echo "#define HAVE_RSA_METH_SET_PRIV_ENC 1" >>confdefs.h | ||
14992 | |||
14993 | fi | ||
14994 | |||
14995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_meth_set_priv_dec" >&5 | ||
14996 | $as_echo_n "checking for library containing RSA_meth_set_priv_dec... " >&6; } | ||
14997 | if ${ac_cv_search_RSA_meth_set_priv_dec+:} false; then : | ||
14998 | $as_echo_n "(cached) " >&6 | ||
14999 | else | ||
15000 | ac_func_search_save_LIBS=$LIBS | ||
15001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15002 | /* end confdefs.h. */ | ||
15003 | |||
15004 | /* Override any GCC internal prototype to avoid an error. | ||
15005 | Use char because int might match the return type of a GCC | ||
15006 | builtin and then its argument prototype would still apply. */ | ||
15007 | #ifdef __cplusplus | ||
15008 | extern "C" | ||
15009 | #endif | ||
15010 | char RSA_meth_set_priv_dec (); | ||
15011 | int | ||
15012 | main () | ||
15013 | { | ||
15014 | return RSA_meth_set_priv_dec (); | ||
15015 | ; | ||
15016 | return 0; | ||
15017 | } | ||
15018 | _ACEOF | ||
15019 | for ac_lib in '' crypto; do | ||
15020 | if test -z "$ac_lib"; then | ||
15021 | ac_res="none required" | ||
15022 | else | ||
15023 | ac_res=-l$ac_lib | ||
15024 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15025 | fi | ||
15026 | if ac_fn_c_try_link "$LINENO"; then : | ||
15027 | ac_cv_search_RSA_meth_set_priv_dec=$ac_res | ||
15028 | fi | ||
15029 | rm -f core conftest.err conftest.$ac_objext \ | ||
15030 | conftest$ac_exeext | ||
15031 | if ${ac_cv_search_RSA_meth_set_priv_dec+:} false; then : | ||
15032 | break | ||
15033 | fi | ||
15034 | done | ||
15035 | if ${ac_cv_search_RSA_meth_set_priv_dec+:} false; then : | ||
15036 | |||
15037 | else | ||
15038 | ac_cv_search_RSA_meth_set_priv_dec=no | ||
15039 | fi | ||
15040 | rm conftest.$ac_ext | ||
15041 | LIBS=$ac_func_search_save_LIBS | ||
15042 | fi | ||
15043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_meth_set_priv_dec" >&5 | ||
15044 | $as_echo "$ac_cv_search_RSA_meth_set_priv_dec" >&6; } | ||
15045 | ac_res=$ac_cv_search_RSA_meth_set_priv_dec | ||
15046 | if test "$ac_res" != no; then : | ||
15047 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15048 | |||
15049 | $as_echo "#define HAVE_RSA_METH_SET_PRIV_DEC 1" >>confdefs.h | ||
15050 | |||
15051 | fi | ||
15052 | |||
15053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_meth_set_finish" >&5 | ||
15054 | $as_echo_n "checking for library containing RSA_meth_set_finish... " >&6; } | ||
15055 | if ${ac_cv_search_RSA_meth_set_finish+:} false; then : | ||
15056 | $as_echo_n "(cached) " >&6 | ||
15057 | else | ||
15058 | ac_func_search_save_LIBS=$LIBS | ||
15059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15060 | /* end confdefs.h. */ | ||
15061 | |||
15062 | /* Override any GCC internal prototype to avoid an error. | ||
15063 | Use char because int might match the return type of a GCC | ||
15064 | builtin and then its argument prototype would still apply. */ | ||
15065 | #ifdef __cplusplus | ||
15066 | extern "C" | ||
15067 | #endif | ||
15068 | char RSA_meth_set_finish (); | ||
15069 | int | ||
15070 | main () | ||
15071 | { | ||
15072 | return RSA_meth_set_finish (); | ||
15073 | ; | ||
15074 | return 0; | ||
15075 | } | ||
15076 | _ACEOF | ||
15077 | for ac_lib in '' crypto; do | ||
15078 | if test -z "$ac_lib"; then | ||
15079 | ac_res="none required" | ||
15080 | else | ||
15081 | ac_res=-l$ac_lib | ||
15082 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15083 | fi | ||
15084 | if ac_fn_c_try_link "$LINENO"; then : | ||
15085 | ac_cv_search_RSA_meth_set_finish=$ac_res | ||
15086 | fi | ||
15087 | rm -f core conftest.err conftest.$ac_objext \ | ||
15088 | conftest$ac_exeext | ||
15089 | if ${ac_cv_search_RSA_meth_set_finish+:} false; then : | ||
15090 | break | ||
15091 | fi | ||
15092 | done | ||
15093 | if ${ac_cv_search_RSA_meth_set_finish+:} false; then : | ||
15094 | |||
15095 | else | ||
15096 | ac_cv_search_RSA_meth_set_finish=no | ||
15097 | fi | ||
15098 | rm conftest.$ac_ext | ||
15099 | LIBS=$ac_func_search_save_LIBS | ||
15100 | fi | ||
15101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RSA_meth_set_finish" >&5 | ||
15102 | $as_echo "$ac_cv_search_RSA_meth_set_finish" >&6; } | ||
15103 | ac_res=$ac_cv_search_RSA_meth_set_finish | ||
15104 | if test "$ac_res" != no; then : | ||
15105 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15106 | |||
15107 | $as_echo "#define HAVE_RSA_METH_SET_FINISH 1" >>confdefs.h | ||
15108 | |||
15109 | fi | ||
15110 | |||
15111 | |||
15112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_PKEY_get0_RSA" >&5 | ||
15113 | $as_echo_n "checking for library containing EVP_PKEY_get0_RSA... " >&6; } | ||
15114 | if ${ac_cv_search_EVP_PKEY_get0_RSA+:} false; then : | ||
15115 | $as_echo_n "(cached) " >&6 | ||
15116 | else | ||
15117 | ac_func_search_save_LIBS=$LIBS | ||
15118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15119 | /* end confdefs.h. */ | ||
15120 | |||
15121 | /* Override any GCC internal prototype to avoid an error. | ||
15122 | Use char because int might match the return type of a GCC | ||
15123 | builtin and then its argument prototype would still apply. */ | ||
15124 | #ifdef __cplusplus | ||
15125 | extern "C" | ||
15126 | #endif | ||
15127 | char EVP_PKEY_get0_RSA (); | ||
15128 | int | ||
15129 | main () | ||
15130 | { | ||
15131 | return EVP_PKEY_get0_RSA (); | ||
15132 | ; | ||
15133 | return 0; | ||
15134 | } | ||
15135 | _ACEOF | ||
15136 | for ac_lib in '' crypto; do | ||
15137 | if test -z "$ac_lib"; then | ||
15138 | ac_res="none required" | ||
15139 | else | ||
15140 | ac_res=-l$ac_lib | ||
15141 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15142 | fi | ||
15143 | if ac_fn_c_try_link "$LINENO"; then : | ||
15144 | ac_cv_search_EVP_PKEY_get0_RSA=$ac_res | ||
15145 | fi | ||
15146 | rm -f core conftest.err conftest.$ac_objext \ | ||
15147 | conftest$ac_exeext | ||
15148 | if ${ac_cv_search_EVP_PKEY_get0_RSA+:} false; then : | ||
15149 | break | ||
15150 | fi | ||
15151 | done | ||
15152 | if ${ac_cv_search_EVP_PKEY_get0_RSA+:} false; then : | ||
15153 | |||
15154 | else | ||
15155 | ac_cv_search_EVP_PKEY_get0_RSA=no | ||
15156 | fi | ||
15157 | rm conftest.$ac_ext | ||
15158 | LIBS=$ac_func_search_save_LIBS | ||
15159 | fi | ||
15160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_PKEY_get0_RSA" >&5 | ||
15161 | $as_echo "$ac_cv_search_EVP_PKEY_get0_RSA" >&6; } | ||
15162 | ac_res=$ac_cv_search_EVP_PKEY_get0_RSA | ||
15163 | if test "$ac_res" != no; then : | ||
15164 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15165 | |||
15166 | $as_echo "#define HAVE_EVP_PKEY_GET0_RSA 1" >>confdefs.h | ||
15167 | |||
15168 | fi | ||
15169 | |||
15170 | |||
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_MD_CTX_new" >&5 | ||
15172 | $as_echo_n "checking for library containing EVP_MD_CTX_new... " >&6; } | ||
15173 | if ${ac_cv_search_EVP_MD_CTX_new+:} false; then : | ||
15174 | $as_echo_n "(cached) " >&6 | ||
15175 | else | ||
15176 | ac_func_search_save_LIBS=$LIBS | ||
15177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15178 | /* end confdefs.h. */ | ||
15179 | |||
15180 | /* Override any GCC internal prototype to avoid an error. | ||
15181 | Use char because int might match the return type of a GCC | ||
15182 | builtin and then its argument prototype would still apply. */ | ||
15183 | #ifdef __cplusplus | ||
15184 | extern "C" | ||
15185 | #endif | ||
15186 | char EVP_MD_CTX_new (); | ||
15187 | int | ||
15188 | main () | ||
15189 | { | ||
15190 | return EVP_MD_CTX_new (); | ||
15191 | ; | ||
15192 | return 0; | ||
15193 | } | ||
15194 | _ACEOF | ||
15195 | for ac_lib in '' crypto; do | ||
15196 | if test -z "$ac_lib"; then | ||
15197 | ac_res="none required" | ||
15198 | else | ||
15199 | ac_res=-l$ac_lib | ||
15200 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15201 | fi | ||
15202 | if ac_fn_c_try_link "$LINENO"; then : | ||
15203 | ac_cv_search_EVP_MD_CTX_new=$ac_res | ||
15204 | fi | ||
15205 | rm -f core conftest.err conftest.$ac_objext \ | ||
15206 | conftest$ac_exeext | ||
15207 | if ${ac_cv_search_EVP_MD_CTX_new+:} false; then : | ||
15208 | break | ||
15209 | fi | ||
15210 | done | ||
15211 | if ${ac_cv_search_EVP_MD_CTX_new+:} false; then : | ||
15212 | |||
15213 | else | ||
15214 | ac_cv_search_EVP_MD_CTX_new=no | ||
15215 | fi | ||
15216 | rm conftest.$ac_ext | ||
15217 | LIBS=$ac_func_search_save_LIBS | ||
15218 | fi | ||
15219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_MD_CTX_new" >&5 | ||
15220 | $as_echo "$ac_cv_search_EVP_MD_CTX_new" >&6; } | ||
15221 | ac_res=$ac_cv_search_EVP_MD_CTX_new | ||
15222 | if test "$ac_res" != no; then : | ||
15223 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15224 | |||
15225 | $as_echo "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h | ||
15226 | |||
15227 | fi | ||
15228 | |||
15229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_MD_CTX_free" >&5 | ||
15230 | $as_echo_n "checking for library containing EVP_MD_CTX_free... " >&6; } | ||
15231 | if ${ac_cv_search_EVP_MD_CTX_free+:} false; then : | ||
15232 | $as_echo_n "(cached) " >&6 | ||
15233 | else | ||
15234 | ac_func_search_save_LIBS=$LIBS | ||
15235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15236 | /* end confdefs.h. */ | ||
15237 | |||
15238 | /* Override any GCC internal prototype to avoid an error. | ||
15239 | Use char because int might match the return type of a GCC | ||
15240 | builtin and then its argument prototype would still apply. */ | ||
15241 | #ifdef __cplusplus | ||
15242 | extern "C" | ||
15243 | #endif | ||
15244 | char EVP_MD_CTX_free (); | ||
15245 | int | ||
15246 | main () | ||
15247 | { | ||
15248 | return EVP_MD_CTX_free (); | ||
15249 | ; | ||
15250 | return 0; | ||
15251 | } | ||
15252 | _ACEOF | ||
15253 | for ac_lib in '' crypto; do | ||
15254 | if test -z "$ac_lib"; then | ||
15255 | ac_res="none required" | ||
15256 | else | ||
15257 | ac_res=-l$ac_lib | ||
15258 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15259 | fi | ||
15260 | if ac_fn_c_try_link "$LINENO"; then : | ||
15261 | ac_cv_search_EVP_MD_CTX_free=$ac_res | ||
15262 | fi | ||
15263 | rm -f core conftest.err conftest.$ac_objext \ | ||
15264 | conftest$ac_exeext | ||
15265 | if ${ac_cv_search_EVP_MD_CTX_free+:} false; then : | ||
15266 | break | ||
15267 | fi | ||
15268 | done | ||
15269 | if ${ac_cv_search_EVP_MD_CTX_free+:} false; then : | ||
15270 | |||
15271 | else | ||
15272 | ac_cv_search_EVP_MD_CTX_free=no | ||
15273 | fi | ||
15274 | rm conftest.$ac_ext | ||
15275 | LIBS=$ac_func_search_save_LIBS | ||
15276 | fi | ||
15277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_MD_CTX_free" >&5 | ||
15278 | $as_echo "$ac_cv_search_EVP_MD_CTX_free" >&6; } | ||
15279 | ac_res=$ac_cv_search_EVP_MD_CTX_free | ||
15280 | if test "$ac_res" != no; then : | ||
15281 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15282 | |||
15283 | $as_echo "#define HAVE_EVP_MD_CTX_FREE 1" >>confdefs.h | ||
15284 | |||
15285 | fi | ||
15286 | |||
15287 | |||
13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 | 15288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 |
13408 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } | 15289 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } |
13409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 15290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |