[gimp/gimp-2-10] configure: check presence of "gegl:matting-levin" with `gegl --exists`.



commit 5f088a95c39c1f66a2f922577ea633ced04f1885
Author: Jehan <jehan girinstud io>
Date:   Mon Sep 17 16:40:00 2018 +0200

    configure: check presence of "gegl:matting-levin" with `gegl --exists`.
    
    This is a runtime dependency. If absent, we simply won't have access to
    the alternative Matting Levin engine in the foreground selection tool.
    
    If we don't add a test in configure, this may be easily forgotten. I
    created the `gegl --exists` feature specifically for this kind of
    checks, so let's check operation existence.
    
    (cherry picked from commit 9560a653c5c1554cd4e9e79afbe08283698f2ec6)

 INSTALL.in   |  1 +
 configure.ac | 13 +++++++++++++
 2 files changed, 14 insertions(+)
---
diff --git a/INSTALL.in b/INSTALL.in
index 8a77cd40fe..f4e27d93be 100644
--- a/INSTALL.in
+++ b/INSTALL.in
@@ -193,6 +193,7 @@ header files installed.
      xdg-email for sending emails
      sendmail for sending emails if --with-sendmail enabled
      gdb or lldb for our new bug-reporting dialog
+     "gegl:matting-levin" GEGL operation for alternative matting engine
 
 Please make sure you don't have any old GTK+-2.x, jpeg, etc. libraries
 lying around on your system, otherwise configure may fail to find the
diff --git a/configure.ac b/configure.ac
index f9306fedae..29f48c7631 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1007,6 +1007,18 @@ AM_CONDITIONAL(HAVE_EXCHNDL, test "x$ac_cv_lib_exchndl_ExcHndlSetLogFileNameA" =
 
 AC_CHECK_HEADERS([execinfo.h])
 
+#########################
+# Check for Matting Levin
+#########################
+
+AC_MSG_CHECKING([for matting engine Levin])
+if $GEGL --exists "gegl:matting-levin"; then
+  have_matting_levin=yes
+else
+  have_matting_levin='no (missing GEGL operation "gegl:matting-levin")'
+fi
+AC_MSG_RESULT($have_matting_levin)
+
 ##########################################
 # Check for some special functions we need
 ##########################################
@@ -2978,6 +2990,7 @@ Extra Binaries:
   gimp-console:              $enable_gimp_console
 
 Optional Features:
+  Levin matting engine:      $have_matting_levin
   Language selection:        $have_iso_codes
   Vector icons:              $enable_vector_icons
   Dr. Mingw (Win32):         $enable_drmingw


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