diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 560885d..5d907d1 100644 --- a/configure.ac +++ b/configure.ac @@ -148,7 +148,11 @@ PKG_CHECK_EXISTS( PKG_CHECK_MODULES(LIBMATENOTIFY, libmatenotify >= $LIBMATENOTIFY_REQUIRED) -PKG_CHECK_MODULES(UNIQUE, unique-1.0 >= $UNIQUE_REQUIRED) +dnl if glib is > 2.30, then unique-3.0 is needed +PKG_CHECK_EXISTS(glib-2.0 >= 2.30.0, + [PKG_CHECK_MODULES(UNIQUE, unique-3.0 >= $UNIQUE_REQUIRED)], + [PKG_CHECK_MODULES(UNIQUE, unique-1.0 >= $UNIQUE_REQUIRED)] +) PKG_CHECK_MODULES(UPOWER, upower-glib >= $UPOWER_REQUIRED) |