summaryrefslogtreecommitdiff
path: root/app-emulation/wine/files/wine-1.7.45-libunwind-osx-only.patch
blob: e7a7905589ca2bcbc8df3f15467a6283de5bbe4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
From 36a9f9dd05c3b9df77c44c91663e9bd6cae1c848 Mon Sep 17 00:00:00 2001
From: Ken Thomases <ken@codeweavers.com>
Date: Mon, 15 Jun 2015 20:42:33 -0500
Subject: [PATCH 1/1] configure: Only check for libunwind.h on OS X.

---
 configure    | 13 ++++++++++++-
 configure.ac |  2 +-
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index a104097..c0951db 100755
--- a/configure
+++ b/configure
@@ -6626,7 +6626,6 @@ for ac_header in \
 	lber.h \
 	ldap.h \
 	libproc.h \
-	libunwind.h \
 	link.h \
 	linux/cdrom.h \
 	linux/compiler.h \
@@ -7849,6 +7848,18 @@ uninstall::
     ;;
 
   darwin*|macosx*)
+    for ac_header in libunwind.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
+if test "x$ac_cv_header_libunwind_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBUNWIND_H 1
+_ACEOF
+
+fi
+
+done
+
     LIBEXT="dylib"
     DLLFLAGS="$DLLFLAGS -fPIC"
     LIBWINE_LDFLAGS="-multiply_defined suppress"
diff --git a/configure.ac b/configure.ac
index df28b27..f9df3f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -424,7 +424,6 @@ AC_CHECK_HEADERS(\
 	lber.h \
 	ldap.h \
 	libproc.h \
-	libunwind.h \
 	link.h \
 	linux/cdrom.h \
 	linux/compiler.h \
@@ -751,6 +750,7 @@ uninstall::
     ;;
 
   darwin*|macosx*)
+    AC_CHECK_HEADERS(libunwind.h)
     LIBEXT="dylib"
     DLLFLAGS="$DLLFLAGS -fPIC"
     LIBWINE_LDFLAGS="-multiply_defined suppress"
-- 
1.9.1