From 7c0a4e7ca36b93df4968182f92b3d52fd4d1bb01 Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Tue, 28 Dec 2021 12:12:13 +0100 Subject: Add configure test for the backtrace implementation Improve robustness by testing explicitly; instead of assuming based on the OS, test first the libc and then test for libexecinfo. The assumption was wrong for FreeBSD (included since 2017) and for musl-based systems (not in libc). Also, remove INCLUDE_BACKTRACE and clean up a bit. Ref: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220271 Change-Id: Ib4b7fd4fe2cdf5f76babe47a21bd2990fcf42649 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127538 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski (cherry picked from commit c1be12396088563ed77ed61e54fd4e153469701d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127767 Reviewed-by: Ismael Luceno Reviewed-by: Michael Stahl --- config_host/config_features.h.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config_host') diff --git a/config_host/config_features.h.in b/config_host/config_features.h.in index e38e46386d83..0f610a5646bc 100644 --- a/config_host/config_features.h.in +++ b/config_host/config_features.h.in @@ -99,6 +99,10 @@ */ #define HAVE_FEATURE_BREAKPAD 0 +/* BACKTRACE - whether a GNU backtrace implementation is available. + */ +#define HAVE_FEATURE_BACKTRACE 0 + /* * Whether OpenGL is enabled */ -- cgit v1.2.3