[gimp] configure: do not show "profile support: yes" when HEIC support is OFF.



commit fc25709367718886bd68c3d2d6a10a277b574cb9
Author: Jehan <jehan girinstud io>
Date:   Thu Oct 22 11:57:12 2020 +0200

    configure: do not show "profile support: yes" when HEIC support is OFF.
    
    Same as previous commit but for autotools, in a separate commit for easy
    cherry-pick.

 configure.ac | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b1de8a8bf5..28e5ede5f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1820,12 +1820,17 @@ fi
 AC_SUBST(FILE_HEIF)
 AM_CONDITIONAL(HAVE_LIBHEIF, test "x$have_libheif" = xyes)
 
+have_heif_profile_support=no
 if test "x$have_libheif_1_4_0" = xyes; then
   AC_DEFINE(HAVE_LIBHEIF_1_4_0, 1,
             [Define to 1 if libheif >= 1.4.0 is available])
 
-  if test "x$warning_libheif" != "x"; then
-    have_libheif_1_4_0="yes (see warning below)"
+  if test "x$can_import_heic" = xyes || test "x$can_export_heic" = xyes; then
+    if test "x$warning_libheif" != "x"; then
+      have_heif_profile_support="yes (see warning below)"
+    else
+      have_heif_profile_support=yes
+    fi
   fi
 fi
 
@@ -3176,7 +3181,7 @@ Optional Plug-Ins:
   MNG:                       $have_libmng
   OpenEXR:                   $have_openexr
   WebP:                      $have_webp
-  HEIC:                      import: $can_import_heic - export: $can_export_heic [[profile support: 
$have_libheif_1_4_0]]
+  HEIC:                      import: $can_import_heic - export: $can_export_heic [[profile support: 
$have_heif_profile_support]]
   AVIF:                      import: $can_import_avif - export: $can_export_avif
   PDF (export):              $have_cairo_pdf
   Print:                     $enable_print


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