[evince/wip/gpoo/meson-improvements: 2/3] build: Update build libtiff-4 dependency




commit 4609183db3a42b887bf86e4d40a80c70b4592b2c
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Fri Jul 16 02:53:58 2021 -0400

    build: Update build libtiff-4 dependency
    
    libtiff-4 was released about 10 years ago, and includes pkg-config.
    Instead of checking the headers to detect a version >=3.6 we can
    just ask for libtiff-4 availability.

 meson.build | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 3e5b91a0..8a27be17 100644
--- a/meson.build
+++ b/meson.build
@@ -422,14 +422,13 @@ elif not get_option('ps').disabled()
 endif
 
 # *** TIFF ***
-# FIXME: libtiff-4 supports required features by default, so probably there is no need for header and 
function checks
 libtiff_dep = dependency('libtiff-4', required: get_option('tiff'))
-enable_tiff = libtiff_dep.found() and cc.has_header('tiff.h', dependencies: libtiff_dep) and 
cc.has_function('TIFFOpen', dependencies: libtiff_dep) and cc.has_function('TIFFReadRGBAImageOriented', 
dependencies: libtiff_dep)
+enable_tiff = libtiff_dep.found()
 if enable_tiff
   backends += {'tiff': mime_types_list.get('tiff')}
   evince_mime_types += mime_types_list.get('tiff')
 elif get_option('tiff').auto()
-  warning('Tiff support is disabled since tiff library version 3.6 or newer not found')
+  warning('Tiff support is disabled since tiff library version 4.0 or newer not found')
 endif
 
 # *** XPS ***


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