SDL_mixer: Fixed detecting codec DLLs in cross-compilation environment

From a879221edd7d7a9e234adffb73a0538b7e9d470c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 15 Jan 2024 09:18:22 -0800
Subject: [PATCH] Fixed detecting codec DLLs in cross-compilation environment

---
 configure    | 2 ++
 configure.ac | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/configure b/configure
index 338b92e8..40818b6e 100755
--- a/configure
+++ b/configure
@@ -16958,6 +16958,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
   rm -f conf.sdltest
 
+CFLAGS="$CFLAGS $SDL_CFLAGS"
+LIBS="$LIBS $SDL_LIBS"
 EXTRA_CFLAGS="$EXTRA_CFLAGS $SDL_CFLAGS"
 
 EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BUILD_MAJOR_VERSION=$MAJOR_VERSION -DSDL_BUILD_MINOR_VERSION=$MINOR_VERSION -DSDL_BUILD_MICRO_VERSION=$MICRO_VERSION"
diff --git a/configure.ac b/configure.ac
index f9526640..c5d936f2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -287,6 +287,8 @@ AM_PATH_SDL2($SDL_VERSION,
             :,
             AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
 )
+CFLAGS="$CFLAGS $SDL_CFLAGS"
+LIBS="$LIBS $SDL_LIBS"
 EXTRA_CFLAGS="$EXTRA_CFLAGS $SDL_CFLAGS"
 
 dnl For use in static assertions