X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=ac%2Fopenssl.m4;h=f38419e14169267a0bbe344a983b81b31f3662c8;hp=0e518e46d5b121620bb1682a7d26fed53c0e81d7;hb=70ff69729ba9dfb554205d623bf54eb0f680dd15;hpb=41aa89dcf3a375145182377e372f1fcaba37c7b7 diff --git a/ac/openssl.m4 b/ac/openssl.m4 index 0e518e46d..f38419e14 100644 --- a/ac/openssl.m4 +++ b/ac/openssl.m4 @@ -38,8 +38,6 @@ AC_DEFUN([AM_PATH_OPENSSL], AC_ARG_WITH(openssl-libs, [ --with-openssl-libs=PREFIX Location of OpenSSL libs.], with_openssl_libs="$withval") if test "x${with_openssl_libs}" != "xno" -a "x${have_openssl_includes}" != "xno"; then - LIBS_save="$LIBS" - case $with_openssl_libs in ""|-L*) ;; *) with_openssl_libs="-L$with_openssl_libs" ;; @@ -48,6 +46,7 @@ AC_DEFUN([AM_PATH_OPENSSL], AC_CHECK_LIB(dl, dlopen, DL_LIBS="-ldl", DL_LIBS="") AC_CACHE_CHECK([for OpenSSL libraries], openssl_libs, [ + LIBS_save="$LIBS" LIBS="$LIBS $with_openssl_libs -lssl -lcrypto $DL_LIBS" AC_TRY_LINK_FUNC(SSL_read, openssl_libs="yes", openssl_libs="no") LIBS="$LIBS_save"