SDL_image: Our tiff support doesn't depend on libjpeg

From 728e51e2874893e1c10ff38a021ee00d7f4e4b05 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 10 May 2022 15:47:56 -0700
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 2062e69..a054c30 100755
--- a/configure
+++ b/configure
@@ -13513,7 +13513,7 @@ $as_echo "$as_me: WARNING: AVIF image loading disabled" >&2;}
     fi
 fi
 
-if ((test x$enable_jpg = xyes && test x$enable_stb_image != xyes) || test x$enable_tif = xyes) && test x$enable_imageio != xyes; then
+if test x$enable_jpg = xyes -a x$enable_stb_image != 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 1533d59..54471b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -302,7 +302,7 @@ if test x$enable_avif = xyes; then
     fi
 fi
 
-if ((test x$enable_jpg = xyes && test x$enable_stb_image != xyes) || test x$enable_tif = xyes) && test x$enable_imageio != xyes; then
+if test x$enable_jpg = xyes -a x$enable_stb_image != xyes -a x$enable_imageio != xyes; then
     PKG_CHECK_MODULES([LIBJPEG], [libjpeg], [dnl
         have_jpg_hdr=yes
         have_jpg_lib=yes