sdl2.m4
changeset 7251 8c5e575a1315
parent 6890 d87e515b5157
child 7492 98de3e4f1c36
equal deleted inserted replaced
7250:bbb6b079cfe5 7251:8c5e575a1315
    19 AC_ARG_WITH(sdl-exec-prefix,[  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
    19 AC_ARG_WITH(sdl-exec-prefix,[  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
    20             sdl_exec_prefix="$withval", sdl_exec_prefix="")
    20             sdl_exec_prefix="$withval", sdl_exec_prefix="")
    21 AC_ARG_ENABLE(sdltest, [  --disable-sdltest       Do not try to compile and run a test SDL program],
    21 AC_ARG_ENABLE(sdltest, [  --disable-sdltest       Do not try to compile and run a test SDL program],
    22 		    , enable_sdltest=yes)
    22 		    , enable_sdltest=yes)
    23 
    23 
    24   min_sdl_version=ifelse([$1], ,0.9.0,$1)
    24   min_sdl_version=ifelse([$1], ,2.0.0,$1)
    25 
    25 
    26   if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
    26   if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
    27     PKG_CHECK_MODULES([SDL], [sdl2 >= $min_sdl_version],
    27     PKG_CHECK_MODULES([SDL], [sdl2 >= $min_sdl_version],
    28            [sdl_pc=yes],
    28            [sdl_pc=yes],
    29            [sdl_pc=no])
    29            [sdl_pc=no])