From 1c01f8f4fbf88d925f9aad5186f1522e1e2f7406 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Fri, 1 Nov 2024 22:25:00 +0300 Subject: [PATCH] configure.ac: Add a check for libssh 0.11 --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 986dd55..59b85ea 100644 --- a/configure.ac +++ b/configure.ac @@ -117,6 +117,13 @@ PKG_CHECK_MODULES([LIBSSH_0_10], AM_CONDITIONAL(HAVE_LIBSSH_0_10, $HAVE_LIBSSH_0_10) +PKG_CHECK_MODULES([LIBSSH_0_11], +[libssh >= 0.11.0], +[AC_DEFINE(HAVE_LIBSSH_0_11, 1, [Use libssh 0.11])], +[AC_DEFINE(HAVE_LIBSSH_0_11, 0, [Use libssh < 0.11])]) + +AM_CONDITIONAL(HAVE_LIBSSH_0_11, $HAVE_LIBSSH_0_11) + # ------------------------------------------------------------------------------- dnl These macros must be provided by guile.m4.