# SDL\_mixer: updated sdl2.m4 for autotools

**URL:** <https://discourse.libsdl.org/t/sdl-mixer-updated-sdl2-m4-for-autotools/50652>\
**Category:** SDL Commits\
**Created:** [April 23, 2024, 3:04pm UTC](https://discourse.libsdl.org/t/sdl-mixer-updated-sdl2-m4-for-autotools/50652 "2024-04-23T15:04:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [April 23, 2024, 3:04pm UTC](https://discourse.libsdl.org/t/sdl-mixer-updated-sdl2-m4-for-autotools/50652/1 "2024-04-23T15:04:58Z")

</div>

> <https://github.com/libsdl-org/SDL_mixer/commit/0795d677a133c42b0ccb1a3a0952998839ee2d56>

```diff
From 0795d677a133c42b0ccb1a3a0952998839ee2d56 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

---
 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 d050102b..8a16b7fe 100755
--- a/configure
+++ b/configure
@@ -16747,7 +16747,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

```
