… | |
… | |
8206 | done |
8206 | done |
8207 | |
8207 | |
8208 | |
8208 | |
8209 | CPPFLAGS="$tinc_ac_save_CPPFLAGS" |
8209 | CPPFLAGS="$tinc_ac_save_CPPFLAGS" |
8210 | |
8210 | |
8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_version in -lcrypto" >&5 |
8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 |
8212 | $as_echo_n "checking for SHA1_version in -lcrypto... " >&6; } |
8212 | $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } |
8213 | if test "${ac_cv_lib_crypto_SHA1_version+set}" = set; then : |
8213 | if test "${ac_cv_lib_crypto_SHA1_Init+set}" = set; then : |
8214 | $as_echo_n "(cached) " >&6 |
8214 | $as_echo_n "(cached) " >&6 |
8215 | else |
8215 | else |
8216 | ac_check_lib_save_LIBS=$LIBS |
8216 | ac_check_lib_save_LIBS=$LIBS |
8217 | LIBS="-lcrypto $LIBS" |
8217 | LIBS="-lcrypto $LIBS" |
8218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
… | |
… | |
8222 | Use char because int might match the return type of a GCC |
8222 | Use char because int might match the return type of a GCC |
8223 | builtin and then its argument prototype would still apply. */ |
8223 | builtin and then its argument prototype would still apply. */ |
8224 | #ifdef __cplusplus |
8224 | #ifdef __cplusplus |
8225 | extern "C" |
8225 | extern "C" |
8226 | #endif |
8226 | #endif |
8227 | char SHA1_version (); |
8227 | char SHA1_Init (); |
8228 | int |
8228 | int |
8229 | main () |
8229 | main () |
8230 | { |
8230 | { |
8231 | return SHA1_version (); |
8231 | return SHA1_Init (); |
8232 | ; |
8232 | ; |
8233 | return 0; |
8233 | return 0; |
8234 | } |
8234 | } |
8235 | _ACEOF |
8235 | _ACEOF |
8236 | if ac_fn_cxx_try_link "$LINENO"; then : |
8236 | if ac_fn_cxx_try_link "$LINENO"; then : |
8237 | ac_cv_lib_crypto_SHA1_version=yes |
8237 | ac_cv_lib_crypto_SHA1_Init=yes |
8238 | else |
8238 | else |
8239 | ac_cv_lib_crypto_SHA1_version=no |
8239 | ac_cv_lib_crypto_SHA1_Init=no |
8240 | fi |
8240 | fi |
8241 | rm -f core conftest.err conftest.$ac_objext \ |
8241 | rm -f core conftest.err conftest.$ac_objext \ |
8242 | conftest$ac_exeext conftest.$ac_ext |
8242 | conftest$ac_exeext conftest.$ac_ext |
8243 | LIBS=$ac_check_lib_save_LIBS |
8243 | LIBS=$ac_check_lib_save_LIBS |
8244 | fi |
8244 | fi |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_version" >&5 |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 |
8246 | $as_echo "$ac_cv_lib_crypto_SHA1_version" >&6; } |
8246 | $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } |
8247 | if test "x$ac_cv_lib_crypto_SHA1_version" = x""yes; then : |
8247 | if test "x$ac_cv_lib_crypto_SHA1_Init" = x""yes; then : |
8248 | LIBS="$LIBS -lcrypto" |
8248 | LIBS="$LIBS -lcrypto" |
8249 | else |
8249 | else |
8250 | as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5 |
8250 | as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5 |
8251 | |
8251 | |
8252 | fi |
8252 | fi |