mirror of https://github.com/aria2/aria2
Fix static link failure against libssh2
parent
13c893b34a
commit
ae5e5fdf73
|
@ -489,6 +489,10 @@ if test "x$with_libssh2" = "xyes"; then
|
||||||
PKG_CHECK_MODULES([LIBSSH2], [libssh2], [have_libssh2=yes], [have_libssh2=no])
|
PKG_CHECK_MODULES([LIBSSH2], [libssh2], [have_libssh2=yes], [have_libssh2=no])
|
||||||
if test "x$have_libssh2" = "xyes"; then
|
if test "x$have_libssh2" = "xyes"; then
|
||||||
AC_DEFINE([HAVE_LIBSSH2], [1], [Define to 1 if you have libssh2.])
|
AC_DEFINE([HAVE_LIBSSH2], [1], [Define to 1 if you have libssh2.])
|
||||||
|
|
||||||
|
if test "x$ARIA2_STATIC" = "xyes"; then
|
||||||
|
LIBSSH2_CFLAGS="-DLIBSSH2_API= $LIBSSH2_CFLAGS"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
AC_MSG_WARN([$LIBSSH2_PKG_ERRORS])
|
AC_MSG_WARN([$LIBSSH2_PKG_ERRORS])
|
||||||
if test "x$with_libssh2_requested" = "xyes"; then
|
if test "x$with_libssh2_requested" = "xyes"; then
|
||||||
|
|
Loading…
Reference in New Issue