From f7aab57364a9d3f608a7f6999b951dd6cc8c11f2 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 24 Mar 2018 22:17:33 +0300 Subject: [PATCH] sdl.m4: don't play with the PATH if cross-compiling taken from from SDL2 --- sdl.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdl.m4 b/sdl.m4 index 639eb8517..09d51f212 100644 --- a/sdl.m4 +++ b/sdl.m4 @@ -35,7 +35,7 @@ AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run fi as_save_PATH="$PATH" - if test "x$prefix" != xNONE; then + if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then PATH="$prefix/bin:$prefix/usr/bin:$PATH" fi AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])