Update libunwind configuration check to look for unw_backtrace().

Update libunwind configuration check to look for unw_backtrace(), which
is a newer API not available in older versions of libunwind.
This commit is contained in:
Jason Evans 2014-04-22 20:48:07 -07:00
parent e23e3c44e1
commit 05125b8377

View File

@ -702,7 +702,7 @@ fi,
if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
AC_CHECK_HEADERS([libunwind.h], , [enable_prof_libunwind="0"])
if test "x$LUNWIND" = "x-lunwind" ; then
AC_CHECK_LIB([unwind], [backtrace], [LIBS="$LIBS $LUNWIND"],
AC_CHECK_LIB([unwind], [unw_backtrace], [LIBS="$LIBS $LUNWIND"],
[enable_prof_libunwind="0"])
else
LIBS="$LIBS $LUNWIND"