news: Update for SMMUv3 IOMMU support
[libvirt/ericb.git] / m4 / virt-libssh.m4
blob01c3b75c72bcc138c313a71fe9a61137bcff042e
1 dnl The libssh.so library
2 dnl
3 dnl Copyright (C) 2016 Red Hat, Inc.
4 dnl
5 dnl This library is free software; you can redistribute it and/or
6 dnl modify it under the terms of the GNU Lesser General Public
7 dnl License as published by the Free Software Foundation; either
8 dnl version 2.1 of the License, or (at your option) any later version.
9 dnl
10 dnl This library is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 dnl Lesser General Public License for more details.
14 dnl
15 dnl You should have received a copy of the GNU Lesser General Public
16 dnl License along with this library.  If not, see
17 dnl <http://www.gnu.org/licenses/>.
18 dnl
20 AC_DEFUN([LIBVIRT_ARG_LIBSSH],[
21   LIBVIRT_ARG_WITH_FEATURE([LIBSSH], [libssh], [check], [0.7])
24 AC_DEFUN([LIBVIRT_CHECK_LIBSSH],[
25   LIBVIRT_CHECK_PKG([LIBSSH], [libssh], [0.7])
27   if test "$with_libssh" = "yes" ; then
28     old_CFLAGS="$CFLAGS"
29     old_LIBS="$LIBS"
30     CFLAGS="$CFLAGS $LIBSSH_CFLAGS"
31     LIBS="$LIBS $LIBSSH_LIBS"
32     AC_CHECK_FUNC([ssh_get_server_publickey],
33       [],
34       [AC_DEFINE_UNQUOTED([ssh_get_server_publickey], [ssh_get_publickey],
35             [ssh_get_publickey is deprecated and replaced by ssh_get_server_publickey.])])
36     CFLAGS="$old_CFLAGS"
37     LIBS="$old_LIBS"
38   fi
41 AC_DEFUN([LIBVIRT_RESULT_LIBSSH],[
42   LIBVIRT_RESULT_LIB([LIBSSH])