… | |
… | |
22 | [AC_MSG_ERROR([OpenSSL header files not found.]); break] |
22 | [AC_MSG_ERROR([OpenSSL header files not found.]); break] |
23 | ) |
23 | ) |
24 | |
24 | |
25 | CPPFLAGS="$tinc_ac_save_CPPFLAGS" |
25 | CPPFLAGS="$tinc_ac_save_CPPFLAGS" |
26 | |
26 | |
27 | AC_CHECK_LIB(crypto, SHA1_version, |
27 | AC_CHECK_LIB(crypto, SHA1_Init, |
28 | [LIBS="$LIBS -lcrypto"], |
28 | [LIBS="$LIBS -lcrypto"], |
29 | [AC_MSG_ERROR([OpenSSL libraries not found.])] |
29 | [AC_MSG_ERROR([OpenSSL libraries not found.])] |
30 | ) |
30 | ) |
31 | |
31 | |
32 | AC_CHECK_FUNCS([RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms]) |
32 | AC_CHECK_FUNCS([RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms]) |