|
@@ -6833,80 +6833,81 @@ if test "x$have_openssl" != "xyes"; then
|
|
|
LIBS="-L$openssl_prefix_lib $LIBS"
|
|
|
CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
|
|
|
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
|
|
|
-$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
|
|
|
-if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
|
|
|
+ # First check libcrypto, because libssl may depend on it
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
|
|
|
+$as_echo_n "checking for main in -lcrypto... " >&6; }
|
|
|
+if test "${ac_cv_lib_crypto_main+set}" = set; then :
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
else
|
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
|
-LIBS="-lssl $LIBS"
|
|
|
+LIBS="-lcrypto $LIBS"
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
/* end confdefs.h. */
|
|
|
|
|
|
-/* Override any GCC internal prototype to avoid an error.
|
|
|
- Use char because int might match the return type of a GCC
|
|
|
- builtin and then its argument prototype would still apply. */
|
|
|
-#ifdef __cplusplus
|
|
|
-extern "C"
|
|
|
-#endif
|
|
|
-char SSL_library_init ();
|
|
|
+
|
|
|
int
|
|
|
main ()
|
|
|
{
|
|
|
-return SSL_library_init ();
|
|
|
+return main ();
|
|
|
;
|
|
|
return 0;
|
|
|
}
|
|
|
_ACEOF
|
|
|
if ac_fn_cxx_try_link "$LINENO"; then :
|
|
|
- ac_cv_lib_ssl_SSL_library_init=yes
|
|
|
+ ac_cv_lib_crypto_main=yes
|
|
|
else
|
|
|
- ac_cv_lib_ssl_SSL_library_init=no
|
|
|
+ ac_cv_lib_crypto_main=no
|
|
|
fi
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
|
fi
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
|
|
|
-$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
|
|
|
-if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
|
|
|
- have_openssl=yes LIBS="-lssl $LIBS"
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
|
|
|
+$as_echo "$ac_cv_lib_crypto_main" >&6; }
|
|
|
+if test "x$ac_cv_lib_crypto_main" = x""yes; then :
|
|
|
+ have_openssl=yes; LIBS="-lcrypto $LIBS"
|
|
|
fi
|
|
|
|
|
|
if test "x$have_openssl" = "xyes"; then
|
|
|
have_openssl=no
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
|
|
|
-$as_echo_n "checking for main in -lcrypto... " >&6; }
|
|
|
-if test "${ac_cv_lib_crypto_main+set}" = set; then :
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
|
|
|
+$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
|
|
|
+if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
else
|
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
|
-LIBS="-lcrypto $LIBS"
|
|
|
+LIBS="-lssl $LIBS"
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
/* end confdefs.h. */
|
|
|
|
|
|
-
|
|
|
+/* Override any GCC internal prototype to avoid an error.
|
|
|
+ Use char because int might match the return type of a GCC
|
|
|
+ builtin and then its argument prototype would still apply. */
|
|
|
+#ifdef __cplusplus
|
|
|
+extern "C"
|
|
|
+#endif
|
|
|
+char SSL_library_init ();
|
|
|
int
|
|
|
main ()
|
|
|
{
|
|
|
-return main ();
|
|
|
+return SSL_library_init ();
|
|
|
;
|
|
|
return 0;
|
|
|
}
|
|
|
_ACEOF
|
|
|
if ac_fn_cxx_try_link "$LINENO"; then :
|
|
|
- ac_cv_lib_crypto_main=yes
|
|
|
+ ac_cv_lib_ssl_SSL_library_init=yes
|
|
|
else
|
|
|
- ac_cv_lib_crypto_main=no
|
|
|
+ ac_cv_lib_ssl_SSL_library_init=no
|
|
|
fi
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
|
fi
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
|
|
|
-$as_echo "$ac_cv_lib_crypto_main" >&6; }
|
|
|
-if test "x$ac_cv_lib_crypto_main" = x""yes; then :
|
|
|
- have_openssl=yes; LIBS="-lcrypto $LIBS"
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
|
|
|
+$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
|
|
|
+if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
|
|
|
+ have_openssl=yes LIBS="-lssl $LIBS"
|
|
|
fi
|
|
|
|
|
|
if test "x$have_openssl" = "xyes"; then
|