[gimp] configure: use the poppler-data required version in pkg-config check.



commit 341105366d4063096dc070acb35882f852185865
Author: Jehan <jehan girinstud io>
Date:   Fri Jan 12 19:28:01 2018 +0100

    configure: use the poppler-data required version in pkg-config check.
    
    This makes no functional differences since this package has a pkg-config
    file only since 0.4.7, our current requirement. This means that
    searching for any poppler-data through pkg-config is the same as
    searching for this minimum version.
    But at least that makes for better output in case of error. People who
    wish to build GIMP will have proper error information of the minimum
    requirement for poppler-data.

 configure.ac |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 156085a..28cfa32 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1729,13 +1729,10 @@ AM_CONDITIONAL(BUILD_PRINT, test "x$enable_print" = xyes)
 # PDF import support is a granted feature.
 PKG_CHECK_MODULES(POPPLER, [poppler-glib >= poppler_required_version],,
                   [add_deps_error([poppler-glib >= poppler_required_version])])
-# We don't check against a poppler-data version, which basically means
-# at least 0.4.7 since it has a pkg-config file since 0.4.7, thus we
-# can't verify presence of older versions. Anyway all modern
-# distributions have at least this version and CJK/Cyrillic support
-# should not be considered as "second-zone citizen".
-PKG_CHECK_MODULES(POPPLER_DATA, [poppler-data],,
-                  [add_deps_error([poppler-data])])
+# All modern distributions have at least this version and CJK/Cyrillic
+# support should not be considered as "second-zone citizen".
+PKG_CHECK_MODULES(POPPLER_DATA, [poppler-data >= poppler_data_required_version],,
+                  [add_deps_error([poppler-data >= poppler_data_required_version])])
 
 # MIME_TYPES is for the formats we can open as used for instance in the
 # desktop file. Even if cairo-pdf (used for PDF export) is not


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]