summaryrefslogtreecommitdiff
path: root/x11/py-gtk2/patches/patch-configure
blob: 27453c588b850e0eb76c9afdf417e32e6a86905b (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
$NetBSD: patch-configure,v 1.2 2019/08/29 10:33:59 wiz Exp $

revision 1.1
date: 2016-04-11 09:50:32 +0200;  author: dbj;  state: Exp;  commitid: fyA5JcCRzWk9jb2z;
fix support for gtk2 built for quartz instead of x11

--- configure.orig	2011-04-01 10:41:02.000000000 +0000
+++ configure
@@ -748,6 +748,8 @@ ac_subst_vars='am__EXEEXT_FALSE
 am__EXEEXT_TRUE
 LTLIBOBJS
 LIBOBJS
+USE_QUARTZ_FALSE
+USE_QUARTZ_TRUE
 BUILD_GTKUNIXPRINT_FALSE
 BUILD_GTKUNIXPRINT_TRUE
 GTKUNIXPRINT_LIBS
@@ -14688,6 +14690,25 @@ case $gdk_target in
         ;;
 esac
 
+if test "x$gdk_target" = "xquartz"; then
+   if true; then
+  USE_QUARTZ_TRUE=
+  USE_QUARTZ_FALSE='#'
+else
+  USE_QUARTZ_TRUE='#'
+  USE_QUARTZ_FALSE=
+fi
+
+else
+   if false; then
+  USE_QUARTZ_TRUE=
+  USE_QUARTZ_FALSE='#'
+else
+  USE_QUARTZ_TRUE='#'
+  USE_QUARTZ_FALSE=
+fi
+
+fi
 
 # Check whether --enable-numpy was given.
 if test "${enable_numpy+set}" = set; then :
@@ -15074,6 +15095,14 @@ if test -z "${BUILD_GTKUNIXPRINT_TRUE}" 
   as_fn_error $? "conditional \"BUILD_GTKUNIXPRINT\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 fi
+if test -z "${USE_QUARTZ_TRUE}" && test -z "${USE_QUARTZ_FALSE}"; then
+  as_fn_error $? "conditional \"USE_QUARTZ\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${USE_QUARTZ_TRUE}" && test -z "${USE_QUARTZ_FALSE}"; then
+  as_fn_error $? "conditional \"USE_QUARTZ\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
 
 : ${CONFIG_STATUS=./config.status}
 ac_write_fail=0