Commit c9a9cf59159e65c43843f4a2e5966ff486058ace

Werner Lemberg 2017-06-03T09:41:50

* builds/unix/freetype-config.in: Fix pkg-config test (#51162). Patch directly taken from bug report.

diff --git a/ChangeLog b/ChangeLog
index 0bf03f3..f36748c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2017-06-03  Werner Lemberg  <wl@gnu.org>
 
+	* builds/unix/freetype-config.in: Fix pkg-config test (#51162).
+
+	Patch directly taken from bug report.
+
+2017-06-03  Werner Lemberg  <wl@gnu.org>
+
 	[bdf] Synchronize sanity checks with pcf driver.
 
 	Reported as
diff --git a/builds/unix/freetype-config.in b/builds/unix/freetype-config.in
index 97de134..22eb837 100644
--- a/builds/unix/freetype-config.in
+++ b/builds/unix/freetype-config.in
@@ -14,7 +14,7 @@ export LC_ALL
 
 
 # if `pkg-config' is available, use values from `freetype2.pc'
-pkg-config --version >/dev/null 2>&1
+pkg-config --atleast-pkgconfig-version 0.24 >/dev/null 2>&1
 if test $? -eq 0 ; then
   # note that option `--variable' is not affected by the
   # PKG_CONFIG_SYSROOT_DIR environment variable