1From 6c0ff65f782ad38130b18e4ecb1538d9a8633684 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 29 May 2021 14:32:17 -0700
4Subject: [PATCH] m4: Check for libunwind instead of libunwind-generic
5
6libunwind-generic is specific to nongnu libunwind, when using llvm
7libunwind this fails, so poking for libunwind make it generic
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 m4/want_unwind.m4 | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/m4/want_unwind.m4 b/m4/want_unwind.m4
16index cadb62b..5517314 100644
17--- a/m4/want_unwind.m4
18+++ b/m4/want_unwind.m4
19@@ -2,7 +2,7 @@ AC_DEFUN([DOVECOT_WANT_UNWIND], [
20   have_libunwind=no
21   AS_IF([test "$want_libunwind" != "no"], [
22     PKG_CHECK_EXISTS([libunwind], [
23-      PKG_CHECK_MODULES([LIBUNWIND], [libunwind-generic],[
24+      PKG_CHECK_MODULES([LIBUNWIND], [libunwind],[
25         have_libunwind=yes
26 	AC_DEFINE([HAVE_LIBUNWIND],,[Define this if you have libunwind])
27       ])
28--
292.31.1
30
31