"Yang Tse" <[EMAIL PROTECTED]> writes:

> 2008/11/18, Simon Josefsson wrote:
>> Hi!  This patch fixes the detection of openssl/libz to use more normal
>> header+library detection code.  It should work fine on common platforms,
>> but it may change detection on weirder systems, but nothing that cannot
>> be fixed by appropriate use of --with-foo-prefix.  [...]
>
> It seems that this has removed the crypto library from linking.
>
> At least for cygwin when using the default installed OpenSSL,
> configure now needs to be executed with LDFLAGS="-lcrypto", otherwise
> libssh2 library linking fails at make stage.
>
> Could configure.in be modified so that there's no need to specify this
> lib manually?

Hi!  This is a definitely a bug -- could you send me a config.log and
output from running ./configure, from a run where you get this failure?

Could you also try the patch below?

/Simon

--- configure.in.~1.62.~        2008-11-27 09:43:58.000000000 +0100
+++ configure.in        2008-11-27 09:45:52.000000000 +0100
@@ -85,7 +85,7 @@
 
 # Look for OpenSSL (default)
 if test "$use_openssl" != "no" && test "$use_libgcrypt" != "yes"; then
-  AC_LIB_HAVE_LINKFLAGS([ssl], [], [#include <openssl/ssl.h>])
+  AC_LIB_HAVE_LINKFLAGS([ssl], [crypto], [#include <openssl/ssl.h>])
 fi
 
 # Look for libgcrypt

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Reply via email to