summaryrefslogtreecommitdiff
path: root/source4/lib/util/fault.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/util/fault.m4')
-rw-r--r--source4/lib/util/fault.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/util/fault.m4 b/source4/lib/util/fault.m4
new file mode 100644
index 0000000000..b24e63641c
--- /dev/null
+++ b/source4/lib/util/fault.m4
@@ -0,0 +1,5 @@
+AC_CHECK_HEADERS(execinfo.h)
+AC_SEARCH_LIBS_EXT(backtrace, [execinfo], EXECINFO_LIBS)
+AC_CHECK_FUNC_EXT(backtrace, $EXECINFO_LIBS)
+SMB_EXT_LIB(EXECINFO,[${EXECINFO_LIBS}])
+SMB_ENABLE(EXECINFO)