1 From 6bfe41474937bbaabd7c953ac62dc9a28aa6fa30 Mon Sep 17 00:00:00 2001
2 From: "Richard W.M. Jones" <rjones@redhat.com>
3 Date: Tue, 23 Mar 2021 13:38:56 +0000
4 Subject: [PATCH 3/7] build: Remove dependency on gobject-introspection.
6 Only required for libguestfs GObject bindings, not for these tools.
8 Fixes: commit 4354a3126152a2748cc9097cba139b3908ccc342
11 m4/introspection.m4 | 94 ---------------------------------------------
12 2 files changed, 95 deletions(-)
13 delete mode 100644 m4/introspection.m4
15 diff --git a/Makefile.am b/Makefile.am
16 index 382f2db130..b5c1bc0b87 100644
19 @@ -75,7 +75,6 @@ EXTRA_DIST = \
21 lib/guestfs-internal-all.h \
23 - m4/introspection.m4 \
27 diff --git a/m4/introspection.m4 b/m4/introspection.m4
28 deleted file mode 100644
29 index 586d679eea..0000000000
30 --- a/m4/introspection.m4
33 -dnl -*- mode: autoconf -*-
34 -dnl Copyright 2009 Johan Dahlin
36 -dnl This file is free software; the author(s) gives unlimited
37 -dnl permission to copy and/or distribute it, with or without
38 -dnl modifications, as long as this notice is preserved.
43 -m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
45 - AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
46 - AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
47 - AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
49 - dnl enable/disable introspection
50 - m4_if([$2], [require],
52 - enable_introspection=yes
54 - AC_ARG_ENABLE(introspection,
55 - AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
56 - [enable introspection for this build]),,
57 - [enable_introspection=auto])
60 - AC_MSG_CHECKING([for gobject-introspection])
62 - dnl presence/version checking
63 - AS_CASE([$enable_introspection],
65 - found_introspection="no (disabled, use --enable-introspection to enable)"
68 - PKG_CHECK_EXISTS([gobject-introspection-1.0],,
69 - AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
70 - PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
71 - found_introspection=yes,
72 - AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
75 - PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
78 - AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
81 - AC_MSG_RESULT([$found_introspection])
83 - INTROSPECTION_SCANNER=
84 - INTROSPECTION_COMPILER=
85 - INTROSPECTION_GENERATE=
86 - INTROSPECTION_GIRDIR=
87 - INTROSPECTION_TYPELIBDIR=
88 - if test "x$found_introspection" = "xyes"; then
89 - INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
90 - INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
91 - INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
92 - INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
93 - INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
94 - INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
95 - INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
96 - INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
98 - AC_SUBST(INTROSPECTION_SCANNER)
99 - AC_SUBST(INTROSPECTION_COMPILER)
100 - AC_SUBST(INTROSPECTION_GENERATE)
101 - AC_SUBST(INTROSPECTION_GIRDIR)
102 - AC_SUBST(INTROSPECTION_TYPELIBDIR)
103 - AC_SUBST(INTROSPECTION_CFLAGS)
104 - AC_SUBST(INTROSPECTION_LIBS)
105 - AC_SUBST(INTROSPECTION_MAKEFILE)
107 - AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
112 -dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
114 -AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
116 - _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
120 -dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
123 -AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
125 - _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])