config: Make libunwind use configurable for 6.0

Issue: 4973

This commit makes stack-trace on fault configurable by
adding "--enable-libunwind" as a configure option.

By default, or if "--enable-libunwind=no" is specified, the libunwind
library will not be configured.

When "--enable-libunwind=yes" is specified, libunwind will be used iff
it can be found in one of the standard library locations.
pull/7215/head
Jeff Lucovsky 5 years ago committed by Victor Julien
parent 1306dbf268
commit 0e2d76f836

@ -1791,13 +1791,17 @@
;;
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(unwind,
AS_HELP_STRING([--enable-unwind], [Enable unwind support]),[enable_unwind=$enableval],[enable_unwind=no])
AS_IF([test "x$enable_unwind" = "xyes"], [
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]),

Loading…
Cancel
Save