SDL_rtf: updated sdl.m4 for autotools

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

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

diff --git a/acinclude/sdl.m4 b/acinclude/sdl.m4
index 30e1f21..53f7889 100644
--- a/acinclude/sdl.m4
+++ b/acinclude/sdl.m4
@@ -5,7 +5,7 @@
 # stolen from Manish Singh
 # Shamelessly stolen from Owen Taylor
 
-# serial 2
+# serial 3
 
 dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
 dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
@@ -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=""
-    SDL_CONFIG="pkg-config sdl"
+    SDL_CONFIG="$PKG_CONFIG sdl"
   else
     as_save_PATH="$PATH"
     if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
diff --git a/configure b/configure
index b724ace..6961b29 100755
--- a/configure
+++ b/configure
@@ -11739,7 +11739,7 @@ fi
 
   if test "x$sdl_pc" = xyes ; then
     no_sdl=""
-    SDL_CONFIG="pkg-config sdl"
+    SDL_CONFIG="$PKG_CONFIG sdl"
   else
     as_save_PATH="$PATH"
     if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then