mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 19:01:15 +00:00
Update configure to find SDL2
This commit is contained in:
parent
d0d10fbe02
commit
b4be517b39
2 changed files with 5 additions and 5 deletions
8
configure
vendored
8
configure
vendored
|
@ -5793,12 +5793,12 @@ fi
|
|||
|
||||
done
|
||||
|
||||
for ac_header in SDL/SDL.h
|
||||
for ac_header in SDL2/SDL.h
|
||||
do :
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_SDL_SDL_h" = xyes; then :
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "SDL2/SDL.h" "ac_cv_header_SDL2_SDL_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_SDL2_SDL_h" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_SDL_SDL_H 1
|
||||
#define HAVE_SDL2_SDL_H 1
|
||||
_ACEOF
|
||||
have_sdl=yes
|
||||
else
|
||||
|
|
|
@ -572,7 +572,7 @@ BUILD_VIDEO=
|
|||
# Check for the headers...
|
||||
AC_CHECK_HEADERS(libavcodec/avcodec.h, have_codec=yes, have_codec=no)
|
||||
AC_CHECK_HEADERS(libavformat/avformat.h, have_format=yes, have_format=no)
|
||||
AC_CHECK_HEADERS(SDL/SDL.h, have_sdl=yes, have_sdl=no)
|
||||
AC_CHECK_HEADERS(SDL2/SDL.h, have_sdl=yes, have_sdl=no)
|
||||
|
||||
# Only if we have both and enabled, then build video
|
||||
if test $have_codec = yes -a $have_format -a $have_sdl -a $enable_video = yes; then
|
||||
|
|
Loading…
Reference in a new issue