mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
Improve SDL check: use correct CFLAGS when searching for header.
Original commit message from CVS: Improve SDL check: use correct CFLAGS when searching for header.
This commit is contained in:
parent
434d40d4c5
commit
0c8050e3ba
1 changed files with 5 additions and 3 deletions
|
@ -587,9 +587,11 @@ if sdl-config --libs > /dev/null 2>&1; then
|
|||
SDL_LIBS="`sdl-config --libs`"
|
||||
SDL_CFLAGS="`sdl-config --cflags`"
|
||||
AC_CHECK_LIB(SDL, SDL_Init, :, HAVE_LIBSDL=no, $SDL_LIBS)
|
||||
dnl FIXME: CPPFLAGS should be set from SDL_CFLAGS for the next two checks
|
||||
AC_CHECK_HEADER(SDL/SDL.h, :, HAVE_LIBSDL=no)
|
||||
dnl AC_CHECK_FUNC(SDL_CreateYUVOverlay, :, HAVE_LIBSDL=no)
|
||||
dnl FIXME: CPPFLAGS should be set from SDL_CFLAGS for the next check
|
||||
CFLAGS="$sdlcheck_save_CFLAGS"
|
||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
||||
AC_CHECK_HEADER(SDL.h, :, HAVE_LIBSDL=no)
|
||||
sdlcheck_save_CFLAGS="$CFLAGS"
|
||||
AC_CHECK_LIB(SDL, SDL_CreateYUVOverlay, :, HAVE_LIBSDL=no, $SDL_LIBS)
|
||||
else
|
||||
AC_MSG_RESULT(not found)
|
||||
|
|
Loading…
Reference in a new issue