From d6da95231ee790fd884ca2a41fe59aa9b05ccde9 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Thu, 19 Nov 2015 11:30:44 +0100 Subject: extcap: add sshdump. sshdump is an extcap module that allows dumping from a remote host using an ssh connection. It goes with the existing extcap plugin interface. Change-Id: I8987614fdd817b8173a50130812bc643a4833bca Reviewed-on: https://code.wireshark.org/review/11402 Petri-Dish: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- acinclude.m4 | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index 4220fb86c5..89a77016a1 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1476,6 +1476,43 @@ AC_DEFUN([AC_WIRESHARK_GEOIP_CHECK], fi ]) +# +# AC_WIRESHARK_LIBSSH_CHECK +# +AC_DEFUN([AC_WIRESHARK_LIBSSH_CHECK], +[ + want_libssh=defaultyes + + if test "x$want_libssh" = "xdefaultyes"; then + want_libssh=yes + if test "x$ac_cv_enable_usr_local" = "xyes" ; then + withval=/usr/local + if test -d "$withval"; then + AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) + fi + fi + fi + + if test "x$want_libssh" = "xyes"; then + AC_CHECK_LIB(ssh, ssh_new, + [ + LIBSSH_LIBS=-lssh + AC_DEFINE(HAVE_LIBSSH, 1, [Define to use libssh library]) + have_good_libssh=yes + ],, + ) + AC_CHECK_LIB(ssh, ssh_userauth_agent, + [ + LIBSSH_LIBS=-lssh + AC_DEFINE(HAVE_SSH_USERAUTH_AGENT, 1, [Libssh library has ssh_userauth_agent]) + have_ssh_userauth_agent=yes + ],, + ) + else + AC_MSG_RESULT(not required) + fi +]) + #AC_WIRESHARK_LDFLAGS_CHECK # # $1 : ldflag(s) to test -- cgit v1.2.1