summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2026-01-19 15:50:42 -0500
committerVictor Kareh <[email protected]>2026-01-20 14:55:18 -0500
commit009702fbf5ccc3c774bc8cb63fe78069aebca027 (patch)
tree784978b438bda20c788af209510b02cb7098d97b /configure.ac
parent0ea9f2ea29b5818564eef79af6f76e075f603ece (diff)
downloadpluma-009702fbf5ccc3c774bc8cb63fe78069aebca027.tar.bz2
pluma-009702fbf5ccc3c774bc8cb63fe78069aebca027.tar.xz
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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
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