summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-02-03 16:50:33 +0100
committerDavid Sterba <dsterba@suse.cz>2015-02-03 17:13:57 +0100
commit8fa3fed3a4196b38fadb5ee901827a166f879d3f (patch)
tree49b1e41408b3fac4dd40873e5e693d2d3041069e /configure.ac
parent93e0bd4703f6e0c1ee99c651e1ed7430fb2fc92d (diff)
btrfs-progs: autoconf: check if backtrace is really supported
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index dd677371..95e28093 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,6 +68,12 @@ AS_IF([test "x$enable_backtrace" = xno], [
AC_DEFINE([BTRFS_DISABLE_BACKTRACE], [1], [disable backtrace stuff in kerncompat.h ])
])
+if test "x$enable_backtrace" = xyes; then
+ AC_CHECK_HEADERS([execinfo.h])
+ AC_CHECK_FUNCS([backtrace backtrace_symbols_fd], [],
+ AC_MSG_ERROR([standard library does not have backtrace support]))
+fi
+
AC_ARG_ENABLE([documentation],
AS_HELP_STRING([--disable-documentation], [do not build domumentation]),