Look for backtrace() in libexecinfo as well.

Signed-off-by: Aliaksey Kandratsenka <alk@tut.by>
This commit is contained in:
Thomas Klausner 2014-02-25 21:41:28 +01:00 committed by Aliaksey Kandratsenka
parent fd3379a213
commit 9117996149
1 changed files with 2 additions and 1 deletions

View File

@ -207,8 +207,9 @@ fi
# Some tests test the behavior of .so files, and only make sense for dynamic.
AM_CONDITIONAL(ENABLE_STATIC, test "$enable_static" = yes)
# We want to link in libunwind if it exists
# We want to link in libunwind or libexecinfo if it exists
AC_CHECK_LIB(unwind, backtrace, UNWIND_LIBS=-lunwind, UNWIND_LIBS=)
AC_CHECK_LIB(execinfo, backtrace, UNWIND_LIBS=-lexecinfo, UNWIND_LIBS=)
AC_SUBST(UNWIND_LIBS)
# On x86_64, instead of libunwind, we can choose to compile with frame-pointers.