cmake HAVE_UNWIND_INIT_LOCAL_SIGNAL examples

pingcap/tiflash libs/libdaemon/cmake/find_unwind.cmake :36

check_cxx_source_compiles("
            #include <ucontext.h>
            #define UNW_LOCAL_ONLY
            #include <libunwind.h>
            int main () {
            unw_context_t context;
            unw_cursor_t cursor;
            unw_init_local2(&cursor, &context, UNW_INIT_SIGNAL_FRAME);
            return 0;
            }
            " HAVE_UNWIND_INIT_LOCAL_SIGNAL)