commit e11c35da9eb1571fc995426845f4b5b1d09f6875 Author: Enrico Forestieri <for...@lyx.org> Date: Wed Feb 5 11:44:09 2025 +0100
Fix check for callstack printing The code was setting the cache variable before the check, so that callstack printing was turning out to be always possible due to the cached result... --- config/lyxinclude.m4 | 6 +++--- status.24x | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 90113fdf37..e42ae96f0a 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -602,9 +602,9 @@ dnl necessary APIs are available to print callstacks. AC_DEFUN([LYX_CHECK_CALLSTACK_PRINTING], [AC_ARG_ENABLE([callstack-printing], [AS_HELP_STRING([--disable-callstack-printing],[do not print a callstack when crashing])], - lyx_cv_callstack_printing=$enableval, lyx_cv_callstack_printing=yes) + lyx_callstack_printing=$enableval, lyx_callstack_printing=yes) -if test x"$lyx_cv_callstack_printing" = xyes; then +if test x"$lyx_callstack_printing" = xyes; then AC_CACHE_CHECK([whether printing callstack is possible], [lyx_cv_callstack_printing], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ @@ -616,7 +616,7 @@ if test x"$lyx_cv_callstack_printing" = xyes; then backtrace_symbols(array, size); int status = 0; abi::__cxa_demangle("abcd", 0, 0, &status); - ]])],[],[lyx_cv_callstack_printing=no])]) + ]])],[lyx_cv_callstack_printing=yes],[lyx_cv_callstack_printing=no])]) fi if test x"$lyx_cv_callstack_printing" = xyes; then AC_DEFINE([LYX_CALLSTACK_PRINTING], 1, diff --git a/status.24x b/status.24x index 0f105d5438..95a670b2b7 100644 --- a/status.24x +++ b/status.24x @@ -101,3 +101,5 @@ What's new * BUILD/INSTALLATION - Fix compilation with gcc 15. + +- Fix detection of necessary APIs to print callstacks. -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs