SDL: test/acinclude.m4 (AM_PATH_SDL2): apply recent sdl2.m4 PKG_CONFIG patch

From 2afd04d09b322aaabf3a50797292411aa796df13 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 9 Jan 2024 17:11:10 +0300
Subject: [PATCH] test/acinclude.m4 (AM_PATH_SDL2): apply recent sdl2.m4
 PKG_CONFIG patch

---
 test/acinclude.m4 | 4 +---
 test/configure    | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/test/acinclude.m4 b/test/acinclude.m4
index 0fdf353ea29a..ebee8238ab63 100644
--- a/test/acinclude.m4
+++ b/test/acinclude.m4
@@ -5,8 +5,6 @@
 # stolen from Manish Singh
 # Shamelessly stolen from Owen Taylor
 
-# serial 2
-
 dnl AM_PATH_SDL2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
 dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
 dnl
@@ -45,7 +43,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/test/configure b/test/configure
index c71abe48977f..8ea80bc27ea2 100755
--- a/test/configure
+++ b/test/configure
@@ -3966,7 +3966,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