# Required only for seg. fault stacktrace and backtrace debugging
option = get_option('execinfo')
+libexecinfo_dep = []
if not option.disabled()
result = cc.check_header('execinfo.h')
if result
+ # Include unconditionally dependency for NetBSD.
libexecinfo_dep = cc.find_library('execinfo', required : false)
conf_data.set('HAVE_EXECINFO_H', 1)
summary({'execinfo' : ['stacktrace supported:', true]}, section : 'Debugging', bool_yn : true)