File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -631,7 +631,7 @@ if test x$TARGET_OS = xdarwin; then
631631 AX_CHECK_LINK_FLAG ( [ [ -Wl,-dead_strip] ] , [ LDFLAGS="$LDFLAGS -Wl,-dead_strip"] )
632632fi
633633
634- AC_CHECK_HEADERS ( [ endian.h sys/endian.h byteswap.h stdio.h stdlib.h unistd.h strings.h sys/types.h sys/stat.h sys/select.h sys/prctl.h] )
634+ AC_CHECK_HEADERS ( [ endian.h sys/endian.h byteswap.h stdio.h stdlib.h unistd.h strings.h sys/types.h sys/stat.h sys/select.h sys/prctl.h execinfo.h ] )
635635
636636AC_CHECK_DECLS ( [ strnlen] )
637637
@@ -735,6 +735,13 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
735735 [ AC_MSG_RESULT ( no ) ]
736736)
737737
738+ # ensure backtrace() is found, check -lexecinfo if necessary
739+ if test x$TARGET_OS != xwindows; then
740+ AC_SEARCH_LIBS ( [ backtrace] , [ execinfo] , [ ] , [
741+ AC_MSG_ERROR ( [ Unable to find backtrace()] )
742+ ] )
743+ fi
744+
738745# Check for reduced exports
739746if test x$use_reduce_exports = xyes; then
740747 AX_CHECK_COMPILE_FLAG ( [ -fvisibility=hidden] ,[ RE_CXXFLAGS="-fvisibility=hidden"] ,
You can’t perform that action at this time.
0 commit comments