diff options
author | Gaël Bonithon <gael@xfce.org> | 2021-11-18 09:11:02 +0100 |
---|---|---|
committer | Gaël Bonithon <gael@xfce.org> | 2021-12-11 07:52:56 +0100 |
commit | ad680ef6c79a6430ca6bb0b9e48538eb9c64d202 (patch) | |
tree | 8fb3addca78749463e6116226a97ea7951ec7b4b /acinclude.m4 | |
parent | 11574c22e9f1e56d2d64860e40f1582e3c82655a (diff) | |
download | tumbler-ad680ef6c79a6430ca6bb0b9e48538eb9c64d202.tar.gz |
raw-thumbnailer: Check for all possible pkg-config files
This will prevent package maintainers from having to patch `configure`,
or other workarounds.
See !18 for more details.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 3d49a65..360a8ce 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -217,10 +217,17 @@ if test x"$ac_tumbler_raw_thumbnailer" = x"yes"; then PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0 >= 2.14], [ dnl Check for libopenraw - dnl Note: 0.1.0 release changed the pkg-config name from -1.0 to -0.1 - PKG_CHECK_MODULES([LIBOPENRAW_GNOME], [libopenraw-gnome-0.1 >= 0.0.4], [], + dnl From most recent to oldest, hopefully from most likely to least likely + PKG_CHECK_MODULES([LIBOPENRAW_GNOME], [libopenraw-gnome-0.3 >= 0.0.4], [], [ - PKG_CHECK_MODULES([LIBOPENRAW_GNOME], [libopenraw-gnome-1.0 >= 0.0.4], [], [ac_tumbler_raw_thumbnailer=no]) + PKG_CHECK_MODULES([LIBOPENRAW_GNOME], [libopenraw-gnome-0.2 >= 0.0.4], [], + [ + dnl Note: 0.1.0 release changed the pkg-config name from -1.0 to -0.1 + PKG_CHECK_MODULES([LIBOPENRAW_GNOME], [libopenraw-gnome-0.1 >= 0.0.4], [], + [ + PKG_CHECK_MODULES([LIBOPENRAW_GNOME], [libopenraw-gnome-1.0 >= 0.0.4], [], [ac_tumbler_raw_thumbnailer=no]) + ]) + ]) ]) ], [ac_tumbler_raw_thumbnailer=no]) fi |