diff options
Diffstat (limited to 'meta/recipes-support/vte/vte/introspection.patch')
-rw-r--r-- | meta/recipes-support/vte/vte/introspection.patch | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/meta/recipes-support/vte/vte/introspection.patch b/meta/recipes-support/vte/vte/introspection.patch new file mode 100644 index 0000000000..76a841ce10 --- /dev/null +++ b/meta/recipes-support/vte/vte/introspection.patch | |||
@@ -0,0 +1,99 @@ | |||
1 | Index: vte-0.28.2/m4/introspection.m4 | ||
2 | =================================================================== | ||
3 | --- /dev/null | ||
4 | +++ vte-0.28.2/m4/introspection.m4 | ||
5 | @@ -0,0 +1,94 @@ | ||
6 | +dnl -*- mode: autoconf -*- | ||
7 | +dnl Copyright 2009 Johan Dahlin | ||
8 | +dnl | ||
9 | +dnl This file is free software; the author(s) gives unlimited | ||
10 | +dnl permission to copy and/or distribute it, with or without | ||
11 | +dnl modifications, as long as this notice is preserved. | ||
12 | +dnl | ||
13 | + | ||
14 | +# serial 1 | ||
15 | + | ||
16 | +m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL], | ||
17 | +[ | ||
18 | + AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
19 | + AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
20 | + AC_BEFORE([LT_INIT],[$0])dnl setup libtool first | ||
21 | + | ||
22 | + dnl enable/disable introspection | ||
23 | + m4_if([$2], [require], | ||
24 | + [dnl | ||
25 | + enable_introspection=yes | ||
26 | + ],[dnl | ||
27 | + AC_ARG_ENABLE(introspection, | ||
28 | + AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], | ||
29 | + [Enable introspection for this build]),, | ||
30 | + [enable_introspection=auto]) | ||
31 | + ])dnl | ||
32 | + | ||
33 | + AC_MSG_CHECKING([for gobject-introspection]) | ||
34 | + | ||
35 | + dnl presence/version checking | ||
36 | + AS_CASE([$enable_introspection], | ||
37 | + [no], [dnl | ||
38 | + found_introspection="no (disabled, use --enable-introspection to enable)" | ||
39 | + ],dnl | ||
40 | + [yes],[dnl | ||
41 | + PKG_CHECK_EXISTS([gobject-introspection-1.0],, | ||
42 | + AC_MSG_ERROR([gobject-introspection-1.0 is not installed])) | ||
43 | + PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], | ||
44 | + found_introspection=yes, | ||
45 | + AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME])) | ||
46 | + ],dnl | ||
47 | + [auto],[dnl | ||
48 | + PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no) | ||
49 | + ],dnl | ||
50 | + [dnl | ||
51 | + AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@]) | ||
52 | + ])dnl | ||
53 | + | ||
54 | + AC_MSG_RESULT([$found_introspection]) | ||
55 | + | ||
56 | + INTROSPECTION_SCANNER= | ||
57 | + INTROSPECTION_COMPILER= | ||
58 | + INTROSPECTION_GENERATE= | ||
59 | + INTROSPECTION_GIRDIR= | ||
60 | + INTROSPECTION_TYPELIBDIR= | ||
61 | + if test "x$found_introspection" = "xyes"; then | ||
62 | + INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` | ||
63 | + INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` | ||
64 | + INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` | ||
65 | + INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` | ||
66 | + INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" | ||
67 | + INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` | ||
68 | + INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` | ||
69 | + INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection | ||
70 | + fi | ||
71 | + AC_SUBST(INTROSPECTION_SCANNER) | ||
72 | + AC_SUBST(INTROSPECTION_COMPILER) | ||
73 | + AC_SUBST(INTROSPECTION_GENERATE) | ||
74 | + AC_SUBST(INTROSPECTION_GIRDIR) | ||
75 | + AC_SUBST(INTROSPECTION_TYPELIBDIR) | ||
76 | + AC_SUBST(INTROSPECTION_CFLAGS) | ||
77 | + AC_SUBST(INTROSPECTION_LIBS) | ||
78 | + AC_SUBST(INTROSPECTION_MAKEFILE) | ||
79 | + | ||
80 | + AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes") | ||
81 | +]) | ||
82 | + | ||
83 | + | ||
84 | +dnl Usage: | ||
85 | +dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version]) | ||
86 | + | ||
87 | +AC_DEFUN([GOBJECT_INTROSPECTION_CHECK], | ||
88 | +[ | ||
89 | + _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1]) | ||
90 | +]) | ||
91 | + | ||
92 | +dnl Usage: | ||
93 | +dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version]) | ||
94 | + | ||
95 | + | ||
96 | +AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE], | ||
97 | +[ | ||
98 | + _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require]) | ||
99 | +]) | ||