diff --git a/configure.ac b/configure.ac index b336815419426f52bdd4a30bcc577521bc5814d4..8c96873e88e70b7a671ce4c6d8ab39961ee7d222 100644 --- a/configure.ac +++ b/configure.ac @@ -1091,7 +1091,7 @@ if test X"$OPT_LIBSSH2" != Xno; then LIBSSH2_ENABLED=1 AC_DEFINE(USE_LIBSSH2, 1, [if libSSH2 is in use])) - if test X"OPT_LIBSSH2" != Xoff && + if test X"$OPT_LIBSSH2" != Xoff && test "$LIBSSH2_ENABLED" != "1"; then AC_MSG_ERROR([libSSH2 libs and/or directories were not found where specified!]) fi