From 303dd29b501d9f27b60d1b400986f04b99df2453 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Thu, 17 Jun 2021 08:52:17 -0400 Subject: [PATCH] configure.ac: Support libunwind configuration This commit adds support for enabling libunwind -- a library that can be used to display stack information. Libunwind is enabled and used by Suricata if present during configuration. A diagnostic message is displayed if libunwind cannot be found. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 037adda170..c5aeac4fe1 100644 --- a/configure.ac +++ b/configure.ac @@ -1626,6 +1626,13 @@ ;; esac + AC_CHECK_LIB(unwind,unw_backtrace,,LIBUNW="no") + if test "$LIBUNW" = "no"; then + echo + echo " libunwind library and development headers not found" + echo " stacktrace on unexpected termination due to signal not possible" + echo + fi; AC_ARG_ENABLE(ebpf, AS_HELP_STRING([--enable-ebpf],[Enable eBPF support]), -- 2.47.2