From 009702fbf5ccc3c774bc8cb63fe78069aebca027 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Mon, 19 Jan 2026 15:50:42 -0500 Subject: plugins: Fix compatibility with gobject-introspection Starting with version 1.80, girepository moved from gobject introspection into glib and bump the API version to 2.0. This change adds flags to support both API versions. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7c0fe9fb..ed760538 100644 --- a/configure.ac +++ b/configure.ac @@ -195,6 +195,11 @@ GOBJECT_INTROSPECTION_CHECK([0.9.3]) if test "$found_introspection" = "yes"; then have_introspection=yes AC_DEFINE([HAVE_INTROSPECTION], [1], [Define to enable GObject Introspection]) + + # Check for girepository-2.0 API (moved to glib in version 1.80+) + PKG_CHECK_EXISTS([girepository-2.0], + [AC_DEFINE([HAVE_GIREPOSITORY_2], [1], [Using girepository-2.0 API])], + []) else have_introspection=no fi -- cgit v1.2.1