3811 |
3811 |
3812 # Check for SDL |
3812 # Check for SDL |
3813 SDL_CFLAGS="" |
3813 SDL_CFLAGS="" |
3814 SDL_LIBS="" |
3814 SDL_LIBS="" |
3815 SDL="No" |
3815 SDL="No" |
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL2 library" >&5 |
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL library" >&5 |
3817 $as_echo_n "checking SDL2 library... " >&6; } |
3817 $as_echo_n "checking SDL library... " >&6; } |
3818 pkg-config --exists sdl |
3818 pkg-config --exists sdl |
3819 if test "$?" = "0"; then |
3819 if test "$?" = "0"; then |
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3821 $as_echo "yes" >&6; } |
3821 $as_echo "yes" >&6; } |
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl2 library v2.0.0 or newer" >&5 |
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl library v2.0.0 or newer" >&5 |
3823 $as_echo_n "checking sdl2 library v2.0.0 or newer... " >&6; } |
3823 $as_echo_n "checking sdl library v2.0.0 or newer... " >&6; } |
3824 pkg-config --atleast-version=2.0.0 sdl2 |
3824 pkg-config --atleast-version=2.0.0 sdl2 |
3825 if test "$?" = "0"; then |
3825 if test "$?" = "0"; then |
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3827 $as_echo "found" >&6; } |
3827 $as_echo "found" >&6; } |
3828 else |
3828 SDL_CFLAGS="$(pkg-config --cflags sdl2)" |
3829 as_fn_error $? "not found" "$LINENO" 5 |
3829 SDL_LIBS="$(pkg-config --libs sdl2)" |
3830 fi |
3830 for ac_header in SDL2/SDL.h |
3831 SDL_CFLAGS="$(pkg-config --cflags sdl2)" |
|
3832 SDL_LIBS="$(pkg-config --libs sdl2)" |
|
3833 for ac_header in SDL2/SDL.h |
|
3834 do : |
3831 do : |
3835 ac_fn_c_check_header_mongrel "$LINENO" "SDL2/SDL.h" "ac_cv_header_SDL2_SDL_h" "$ac_includes_default" |
3832 ac_fn_c_check_header_mongrel "$LINENO" "SDL2/SDL.h" "ac_cv_header_SDL2_SDL_h" "$ac_includes_default" |
3836 if test "x$ac_cv_header_SDL2_SDL_h" = xyes; then : |
3833 if test "x$ac_cv_header_SDL2_SDL_h" = xyes; then : |
3837 cat >>confdefs.h <<_ACEOF |
3834 cat >>confdefs.h <<_ACEOF |
3838 #define HAVE_SDL2_SDL_H 1 |
3835 #define HAVE_SDL2_SDL_H 1 |
3840 |
3837 |
3841 fi |
3838 fi |
3842 |
3839 |
3843 done |
3840 done |
3844 |
3841 |
3845 SDL="Yes" |
3842 SDL="Yes" |
|
3843 else |
|
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
|
3845 $as_echo "not found" >&6; } |
|
3846 fi |
3846 else |
3847 else |
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3848 $as_echo "no" >&6; } |
3849 $as_echo "no" >&6; } |
3849 fi |
3850 fi |
3850 |
3851 |
3851 # Check for SDL_ttf |
3852 # Check for SDL_ttf if base SDL2 is found. |
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL2_ttf library" >&5 |
3853 if test "$SDL" = "Yes"; then |
|
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL2_ttf library" >&5 |
3853 $as_echo_n "checking SDL2_ttf library... " >&6; } |
3855 $as_echo_n "checking SDL2_ttf library... " >&6; } |
3854 pkg-config --exists SDL2_ttf |
3856 pkg-config --exists SDL2_ttf |
3855 if test "$?" = "0"; then |
3857 if test "$?" = "0"; then |
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3857 $as_echo "yes" >&6; } |
3859 $as_echo "yes" >&6; } |
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl2 library v2.0.0 or newer" >&5 |
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl2 library v2.0.0 or newer" >&5 |
3859 $as_echo_n "checking sdl2 library v2.0.0 or newer... " >&6; } |
3861 $as_echo_n "checking sdl2 library v2.0.0 or newer... " >&6; } |
3860 pkg-config --atleast-version=2.0.0 SDL2_ttf |
3862 pkg-config --atleast-version=2.0.0 SDL2_ttf |
3861 if test "$?" = "0"; then |
3863 if test "$?" = "0"; then |
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3863 $as_echo "found" >&6; } |
3865 $as_echo "found" >&6; } |
|
3866 # Override flags |
|
3867 SDL_CFLAGS="$(pkg-config --cflags SDL2_ttf)" |
|
3868 SDL_LIBS="$(pkg-config --libs SDL2_ttf)" |
|
3869 else |
|
3870 as_fn_error $? "not found" "$LINENO" 5 |
|
3871 SDL="No" |
|
3872 fi |
3864 else |
3873 else |
3865 as_fn_error $? "not found" "$LINENO" 5 |
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3875 $as_echo "no" >&6; } |
3866 fi |
3876 fi |
3867 # Override flags |
|
3868 SDL_CFLAGS="$(pkg-config --cflags SDL2_ttf)" |
|
3869 SDL_LIBS="$(pkg-config --libs SDL2_ttf)" |
|
3870 else |
|
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3872 $as_echo "no" >&6; } |
|
3873 fi |
3877 fi |
3874 |
3878 |
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3876 $as_echo_n "checking for ANSI C header files... " >&6; } |
3880 $as_echo_n "checking for ANSI C header files... " >&6; } |
3877 if ${ac_cv_header_stdc+:} false; then : |
3881 if ${ac_cv_header_stdc+:} false; then : |