fix alsa configury and cmake checks SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Sat, 24 Mar 2018 22:34:42 +0300
branchSDL-1.2
changeset 1196955313dbda97e
parent 11968 1cd1e81d6d66
child 11970 4b06648ea2d9
fix alsa configury and cmake checks

SDL's alsa uses snd_pcm_recover() which has been available only since
alsa-lib-1.0.11. (backported fix for bug #3043.)
configure.in
     1.1 --- a/configure.in	Sat Mar 24 22:30:50 2018 +0300
     1.2 +++ b/configure.in	Sat Mar 24 22:34:42 2018 +0300
     1.3 @@ -361,7 +361,7 @@
     1.4  AC_HELP_STRING([--enable-alsa], [support the ALSA audio API [[default=yes]]]),
     1.5                    , enable_alsa=yes)
     1.6      if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
     1.7 -        AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no)
     1.8 +        AM_PATH_ALSA(1.0.11, have_alsa=yes, have_alsa=no)
     1.9          # Restore all flags from before the ALSA detection runs
    1.10          CFLAGS="$alsa_save_CFLAGS"
    1.11          LDFLAGS="$alsa_save_LDFLAGS"