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 ca1040fa..7760fc9c 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