WMF: no (libwmf is too old)
On fedora 29 configure builds gimp-2.10 without libwmf support despite libwmf-devel is installed and it is younger than required.
This is because the test used to check the version is
$ expr 0.2.10 >= 0.2.8
0
Additional info:
$ libwmf-config --version
0.2.10
$ pkg-config --modversion libwmf
0.2.10
A quick fix is to use pkg-config in case expr
fails:
diff --git a/configure.ac b/configure.ac
index 2b3742c45f..cc411c6ddd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1991,7 +1991,10 @@ if test "x$with_wmf" != xno; then
WMF_LIBS=`$WMF_CONFIG --libs`
WMF_CFLAGS=`$WMF_CONFIG --cflags`
else
- have_libwmf="no (libwmf is too old)"
+ have_libwmf=yes
+ PKG_CHECK_MODULES(WMF, libwmf >= wmf_required_version,
+ FILE_WMF='file-wmf$(EXEEXT)',
+ have_libwmf="no (libwmf not found)")
fi
else
have_libwmf="no (libwmf not found)"