SDL_image: Our tiff support doesn't depend on libjpeg.

From 73238775d91f70b0ee7c1b0050e05180551894d9 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 11 May 2022 17:11:04 +0300
Subject: [PATCH] Our tiff support doesn't depend on libjpeg.

---
 configure    | 2 +-
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index c26da8c..1dba3fc 100755
--- a/configure
+++ b/configure
@@ -12867,7 +12867,7 @@ rm -f core conftest.err conftest.$ac_objext \
 CFLAGS="$CFLAGS $SDL_CFLAGS"
 LIBS="$LIBS $SDL_LIBS"
 
-if (test x$enable_jpg = xyes || test x$enable_tif = xyes) && test x$enable_imageio != xyes; then
+if test x$enable_jpg = xyes -a x$enable_imageio != xyes; then
 
 pkg_failed=no
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5
diff --git a/configure.ac b/configure.ac
index 50e90ea..a2f46c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -221,7 +221,7 @@ AM_PATH_SDL($SDL_VERSION,
 CFLAGS="$CFLAGS $SDL_CFLAGS"
 LIBS="$LIBS $SDL_LIBS"
 
-if (test x$enable_jpg = xyes || test x$enable_tif = xyes) && test x$enable_imageio != xyes; then
+if test x$enable_jpg = xyes -a x$enable_imageio != xyes; then
     PKG_CHECK_MODULES([LIBJPEG], [libjpeg], [dnl
         have_jpg_hdr=yes
         have_jpg_lib=yes