Skip to content

Commit

Permalink
Only pull the SDL cflags, libs if sdl is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Beirdo committed May 9, 2012
1 parent 6149533 commit 84b6d93
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions mythtv/configure
Expand Up @@ -4012,22 +4012,24 @@ enabled freetype2 ||




########################################## ##########################################
SDL_CONFIG="${cross_prefix}sdl-config" if enabled sdl ; then
if check_pkg_config sdl SDL_events.h SDL_PollEvent; then SDL_CONFIG="${cross_prefix}sdl-config"
check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201" $sdl_cflags && if check_pkg_config sdl SDL_events.h SDL_PollEvent; then
enable sdl && check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201" $sdl_cflags &&
check_struct SDL.h SDL_VideoInfo current_w $sdl_cflags && enable sdl_video_size enable sdl &&
else check_struct SDL.h SDL_VideoInfo current_w $sdl_cflags && enable sdl_video_size
if "${SDL_CONFIG}" --version > /dev/null 2>&1; then else
sdl_cflags=$("${SDL_CONFIG}" --cflags) if "${SDL_CONFIG}" --version > /dev/null 2>&1; then
sdl_libs=$("${SDL_CONFIG}" --libs) sdl_cflags=$("${SDL_CONFIG}" --cflags)
check_func_headers SDL_version.h SDL_Linked_Version $sdl_cflags $sdl_libs && sdl_libs=$("${SDL_CONFIG}" --libs)
check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201" $sdl_cflags && check_func_headers SDL_version.h SDL_Linked_Version $sdl_cflags $sdl_libs &&
enable sdl && check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201" $sdl_cflags &&
check_struct SDL.h SDL_VideoInfo current_w $sdl_cflags && enable sdl_video_size enable sdl &&
fi check_struct SDL.h SDL_VideoInfo current_w $sdl_cflags && enable sdl_video_size
fi
fi
enabled sdl && add_cflags $sdl_cflags && add_extralibs $sdl_libs
fi fi
enabled sdl && add_cflags $sdl_cflags && add_extralibs $sdl_libs


texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html


Expand Down

0 comments on commit 84b6d93

Please sign in to comment.