SDL_image: updated sdl2.m4 for autotools (4854a)

From 4854a90f4eeb623cea1a7db1ccf981ec6bed7644 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 23 Apr 2024 08:10:02 +0300
Subject: [PATCH] updated sdl2.m4 for autotools

(cherry picked from commit 7eb020a0a03296192d733091b80d1cf46f847ff6)
---
 acinclude/sdl2.m4 | 2 +-
 configure         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/acinclude/sdl2.m4 b/acinclude/sdl2.m4
index af101a84..b87437af 100644
--- a/acinclude/sdl2.m4
+++ b/acinclude/sdl2.m4
@@ -45,7 +45,7 @@ AC_ARG_ENABLE(sdltest, [  --disable-sdltest       Do not try to compile and run
 
   if test "x$sdl_pc" = xyes ; then
     no_sdl=""
-    SDL2_CONFIG="pkg-config sdl2"
+    SDL2_CONFIG="$PKG_CONFIG sdl2"
   else
     as_save_PATH="$PATH"
     if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
diff --git a/configure b/configure
index 75bfef3e..344f0ecc 100755
--- a/configure
+++ b/configure
@@ -14094,7 +14094,7 @@ fi
 
   if test "x$sdl_pc" = xyes ; then
     no_sdl=""
-    SDL2_CONFIG="pkg-config sdl2"
+    SDL2_CONFIG="$PKG_CONFIG sdl2"
   else
     as_save_PATH="$PATH"
     if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then