From 4b4fa15672cc66ec3e48416d54640afcf8dc0cc0 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 f65aeae9967cf353d22b7f32c583d8e8cbe1b575)
---
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 12698be6..40bbd7d1 100755
--- a/configure
+++ b/configure
@@ -17800,7 +17800,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