ruby-changes:40043
From: nobu <ko1@a...>
Date: Wed, 14 Oct 2015 16:57:10 +0900 (JST)
Subject: [ruby-changes:40043] nobu:r52124 (trunk): configure.in: libunwind.h check
nobu 2015-10-14 16:56:53 +0900 (Wed, 14 Oct 2015) New Revision: 52124 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52124 Log: configure.in: libunwind.h check * configure.in: check for libunwind.h, which is not available in very old OS X SDK. [ruby-core:71080] [Bug #11591] Modified files: trunk/ChangeLog trunk/configure.in trunk/vm_dump.c Index: configure.in =================================================================== --- configure.in (revision 52123) +++ configure.in (revision 52124) @@ -3210,6 +3210,7 @@ AS_CASE(["$target_cpu-$target_os"], https://github.com/ruby/ruby/blob/trunk/configure.in#L3210 AC_CHECK_HEADERS([execinfo.h]) if test "x$ac_cv_header_execinfo_h" = xyes; then AC_CHECK_LIB([execinfo], [backtrace]) + AC_CHECK_HEADERS([libunwind.h]) fi], [*-freebsd*|x86_64-netbsd*], [ AC_CHECK_HEADERS([execinfo.h]) Index: ChangeLog =================================================================== --- ChangeLog (revision 52123) +++ ChangeLog (revision 52124) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Oct 14 16:56:50 2015 Nobuyoshi Nakada <nobu@r...> + + * configure.in: check for libunwind.h, which is not available in + very old OS X SDK. [ruby-core:71080] [Bug #11591] + Wed Oct 14 14:11:42 2015 Brian Black <bblack@v...> * iseq.c (rb_insn_operand_intern): change kw in callinfo disasm from the Index: vm_dump.c =================================================================== --- vm_dump.c (revision 52123) +++ vm_dump.c (revision 52124) @@ -438,7 +438,7 @@ rb_vmdebug_thread_dump_state(VALUE self) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L438 # ifdef HAVE_LIBUNWIND # undef backtrace # define backtrace unw_backtrace -# elif defined(__APPLE__) && defined(__x86_64__) +# elif defined(__APPLE__) && defined(__x86_64__) && defined(HAVE_LIBUNWIND_H) # define UNW_LOCAL_ONLY # include <libunwind.h> # undef backtrace -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/