]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: check for libssh2_init and libssh2_exit
authorDaniel Stenberg <daniel@haxx.se>
Sun, 25 Apr 2010 21:06:41 +0000 (23:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 25 Apr 2010 21:06:41 +0000 (23:06 +0200)
configure.ac

index 5dfa83ef44423410040fa66299c1d96e1e369d84..e18227b786825e8420a0a91be8f5f7bfc193812e 100644 (file)
@@ -1889,7 +1889,8 @@ if test X"$OPT_LIBSSH2" != Xno; then
        dnl to prevent further configure tests to fail due to this
 
        dnl libssh2_version is a post 1.0 addition
-       AC_CHECK_FUNCS( libssh2_version )
+       dnl libssh2_init and libssh2_exit were added in 1.2.5
+       AC_CHECK_FUNCS( libssh2_version libssh2_init libssh2_exit)
 
        LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
        export LD_LIBRARY_PATH