From: Michael Rasmussen Date: Sat, 26 Oct 2024 22:31:08 +0000 (+0200) Subject: Check for exiftool X-Git-Url: http://git.datanom.net/lensdb.git/commitdiff_plain/327f0d2d1044ad77db17e97b198b9c9a928f69f2 Check for exiftool Signed-off-by: Michael Rasmussen --- diff --git a/configure.ac b/configure.ac index 21de1d0..b27d367 100644 --- a/configure.ac +++ b/configure.ac @@ -59,16 +59,27 @@ AC_CHECK_PROG(HAVE_GTK_ICON_CACHE, gtk-update-icon-cache, yes, no) AM_CONDITIONAL(UPDATE_GTK_ICON_CACHE, test x"$HAVE_GTK_ICON_CACHE" = xyes) enable_exif_scanner=yes -AC_MSG_CHECKING([whether to build EXIF scanner]) +AC_MSG_CHECKING([for usable g++]) if test x"$HAVE_CXX" = xno; then AC_MSG_RESULT(no) - AC_MSG_WARN("Auto read EXIF cannot be built; missing dependencies") + AC_MSG_WARN("Auto read EXIF cannot be built; missing g++") enable_exif_scanner=no else - LIBS+="-lstdc++" AC_MSG_RESULT(yes) -fi + AC_PATH_PROG(EXIFTOOL, exiftool, [no]) + if test x"$EXIFTOOL" = xno; then + enable_exif_scanner=no + AC_MSG_WARN("Auto read EXIF cannot be built; missing exiftool [https://exiftool.org/]") + fi +fi +AC_MSG_CHECKING([whether to build EXIF scanner]) +if test x"$enable_exif_scanner" = xyes; then + AC_MSG_RESULT(yes) + LIBS+="-lstdc++" +else + AC_MSG_RESULT(no) +fi AM_CONDITIONAL(BUILD_EXIF_SCANNER, test x"$enable_exif_scanner" != xno) PKG_PROG_PKG_CONFIG @@ -115,6 +126,7 @@ Configuration: Source code: ${ac_pwd} Compiler: ${CC} $($CC -dumpversion) CFLAGS: ${CFLAGS} + Exiftool: $EXIFTOOL " echo "" echo "The binary will be installed in $prefix/bin"