comparison configure.in @ 3939:42e83d81224b SDL-1.2

Committed PulseAudio driver. Thanks, Stephan!
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 13 May 2007 23:12:46 +0000
parents 00959c391aa6
children 9d9e15ab1697
comparison
equal deleted inserted replaced
3938:345908fb5442 3939:42e83d81224b
457 have_audio=yes 457 have_audio=yes
458 fi 458 fi
459 fi 459 fi
460 } 460 }
461 461
462 dnl Find PulseAudio
463 CheckPulseAudio()
464 {
465 AC_ARG_ENABLE(pulseaudio,
466 AC_HELP_STRING([--enable-pulseaudio], [use PulseAudio [[default=yes]]]),
467 , enable_pulse=yes)
468 if test x$enable_audio = xyes -a x$enable_pulse = xyes; then
469 audio_pulse=no
470
471 PULSE_REQUIRED_VERSION=0.9
472
473 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
474 AC_MSG_CHECKING(for PulseAudio $PULSE_REQUIRED_VERSION support)
475 if test x$PKG_CONFIG != xno; then
476 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSE_REQUIRED_VERSION libpulse-simple; then
477 PULSE_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
478 PULSE_LIBS=`$PKG_CONFIG --libs libpulse-simple`
479 audio_pulse=yes
480 fi
481 fi
482 AC_MSG_RESULT($audio_pulse)
483
484 if test x$audio_pulse = xyes; then
485 AC_ARG_ENABLE(pulseaudio-shared,
486 AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]),
487 , enable_pulse_shared=yes)
488 if test "x`echo $PULSE_LIBS | grep -- -L`" = "x"; then
489 if test "x`ls /lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
490 PULSE_LIBS="-L/lib $PULSE_LIBS"
491 elif test "x`ls /usr/lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
492 PULSE_LIBS="-L/usr/lib $PULSE_LIBS"
493 elif test "x`ls /usr/local/lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
494 PULSE_LIBS="-L/usr/local/lib $PULSE_LIBS"
495 fi
496 fi
497 pulse_lib_spec=`echo $PULSE_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libpulse-simple.so.*/'`
498 pulse_lib=`ls -- $pulse_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
499 echo "-- $pulse_lib_spec -> $pulse_lib"
500
501 AC_DEFINE(SDL_AUDIO_DRIVER_PULSE)
502 SOURCES="$SOURCES $srcdir/src/audio/pulse/*.c"
503 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS"
504 if test x$have_loadso != xyes && \
505 test x$enable_pulse_shared = xyes; then
506 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic PulseAudio loading])
507 fi
508 if test x$have_loadso = xyes && \
509 test x$enable_pulse_shared = xyes && test x$pulse_lib != x; then
510 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSE_DYNAMIC, "$pulse_lib")
511 else
512 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS"
513 fi
514 have_audio=yes
515 fi
516 fi
517 }
518
462 CheckARTSC() 519 CheckARTSC()
463 { 520 {
464 AC_ARG_ENABLE(arts, 521 AC_ARG_ENABLE(arts,
465 AC_HELP_STRING([--enable-arts], [support the Analog Real Time Synthesizer [[default=yes]]]), 522 AC_HELP_STRING([--enable-arts], [support the Analog Real Time Synthesizer [[default=yes]]]),
466 , enable_arts=yes) 523 , enable_arts=yes)
2148 CheckDMEDIA 2205 CheckDMEDIA
2149 CheckMME 2206 CheckMME
2150 CheckALSA 2207 CheckALSA
2151 CheckARTSC 2208 CheckARTSC
2152 CheckESD 2209 CheckESD
2210 CheckPulseAudio
2153 CheckNAS 2211 CheckNAS
2154 CheckX11 2212 CheckX11
2155 CheckNANOX 2213 CheckNANOX
2156 CheckFBCON 2214 CheckFBCON
2157 CheckDirectFB 2215 CheckDirectFB