summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 01c7850290..f05064ab81 100644
--- a/configure.ac
+++ b/configure.ac
@@ -842,8 +842,16 @@ case "${build_profile}" in
842 ;; 842 ;;
843esac 843esac
844 844
845PKG_CHECK_MODULES(UNWIND, [libunwind libunwind-generic], 845want_unwind="yes"
846 [have_unwind=yes], [have_unwind=no]) 846have_unwind="no"
847AC_ARG_ENABLE([unwind],
848 [AS_HELP_STRING([--disable-unwind],[Disable unwind library. @<:@default=enabled@:>@])],
849 [want_unwind="no"], [])
850
851if test x"${want_unwind}" = "xyes"; then
852 PKG_CHECK_MODULES(UNWIND, [libunwind libunwind-generic],
853 [have_unwind=${want_unwind}], [have_unwind=no])
854fi
847AS_IF([test "x$have_unwind" = "xyes"], 855AS_IF([test "x$have_unwind" = "xyes"],
848 [AC_DEFINE([HAVE_UNWIND], [1], [Have libunwind])]) 856 [AC_DEFINE([HAVE_UNWIND], [1], [Have libunwind])])
849AM_CONDITIONAL(HAVE_UNWIND, test "x$have_unwind" = "xyes") 857AM_CONDITIONAL(HAVE_UNWIND, test "x$have_unwind" = "xyes")