Moved the host_os checks...
...to a place where they get called even if sdl_test is disabled.
This commit is contained in:
parent
b0dfd6de49
commit
e980537b03
1 changed files with 8 additions and 8 deletions
16
configure.ac
16
configure.ac
|
@ -251,14 +251,6 @@ AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
|
|||
|
||||
SDL_CFLAGS=`$SDL_CONFIG --cflags`
|
||||
SDL_LIBS=`$SDL_CONFIG --libs`
|
||||
case ${host_os} in
|
||||
darwin*)
|
||||
SDL_LIBS="-framework Carbon $SDL_LIBS"
|
||||
esac
|
||||
case ${host_os} in
|
||||
mingw32*)
|
||||
SDL_LIBS="-lunicows $SDL_LIBS"
|
||||
esac
|
||||
sdl_major_version=`$SDL_CONFIG --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
||||
sdl_minor_version=`$SDL_CONFIG --version | \
|
||||
|
@ -413,6 +405,14 @@ if test -n "$LDPREFIX" -a -r `$SDL_CONFIG --prefix`/lib/libSDL.la
|
|||
then SDL_LIBS=`$SDL_CONFIG --prefix`/lib/libSDL.la
|
||||
else SDL_LIBS=`$SDL_CONFIG --libs`
|
||||
fi
|
||||
case $host_os in
|
||||
darwin*)
|
||||
SDL_LIBS="-framework Carbon $SDL_LIBS"
|
||||
esac
|
||||
case $host_os in
|
||||
mingw32*)
|
||||
SDL_LIBS="-lunicows $SDL_LIBS"
|
||||
esac
|
||||
OLD_LIBS=$LIBS
|
||||
LIBS="$LIBS $SDL_LIBS"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue