summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-20 06:35:25 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-20 06:35:25 +0000
commit595056135f2b57fc4c018e561d6ad8d59b06b26b (patch)
treed42d7d684f1d43e1a7334d7e8eaaaf7d3ab13af7 /configure.ac
parentfe735bd30fa6e2d02c9c8fbe4babe4e88f71bc3a (diff)
Support Mach-O on backtrace with DWARF
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7af738d..40b209e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2515,6 +2515,11 @@ AS_IF([test "$rb_cv_binary_elf" = yes], [
])
])
+AC_CHECK_HEADERS([mach-o/loader.h])
+AS_IF([test "$ac_cv_header_mach_o_loader_h" = yes], [
+ AC_LIBOBJ([addr2line])
+])
+
AS_CASE(["$target_os"],
[linux* | gnu* | k*bsd*-gnu | bsdi* | kopensolaris*-gnu], [
AS_IF([test "$rb_cv_binary_elf" = no], [