Skip to content

Commit

Permalink
Damien Carbery fixed bug #542
Browse files Browse the repository at this point in the history
In SDL 1.2.13 sdl.m4 the AM_PATH_SDL function looks for sdl-config.
It sets the PATH:
 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
but does not save the current PATH or restore the current PATH at the end.

This breaks the build on Solaris because we have GNU tools in another dir
(listed at the top of PATH) but non-GNU tools with the same names in
$prefix/bin. Later configure tests finds the non-GNU tools and quits in error
  • Loading branch information
slouken committed Jan 24, 2008
1 parent c1bc26d commit a759402
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdl.m4
Expand Up @@ -32,10 +32,12 @@ AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run
fi
fi
as_save_PATH="$PATH"
if test "x$prefix" != xNONE; then
PATH="$prefix/bin:$prefix/usr/bin:$PATH"
fi
AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])
PATH="$as_save_PATH"
min_sdl_version=ifelse([$1], ,0.11.0,$1)
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
no_sdl=""
Expand Down

0 comments on commit a759402

Please sign in to comment.