Mercurial > sdl-ios-xcode
comparison configure.in @ 4296:f9fb7284991d SDL-1.2
Debian patch: 030_pulseaudio_enable.diff
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 10 Oct 2009 08:50:35 +0000 |
parents | d62725f761a1 |
children | 7d60c0ac6aae |
comparison
equal
deleted
inserted
replaced
4295:d62725f761a1 | 4296:f9fb7284991d |
---|---|
488 dnl Find PulseAudio | 488 dnl Find PulseAudio |
489 CheckPulseAudio() | 489 CheckPulseAudio() |
490 { | 490 { |
491 AC_ARG_ENABLE(pulseaudio, | 491 AC_ARG_ENABLE(pulseaudio, |
492 AC_HELP_STRING([--enable-pulseaudio], [use PulseAudio [[default=yes]]]), | 492 AC_HELP_STRING([--enable-pulseaudio], [use PulseAudio [[default=yes]]]), |
493 , enable_pulse=yes) | 493 , enable_pulseaudio=yes) |
494 if test x$enable_audio = xyes -a x$enable_pulse = xyes; then | 494 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then |
495 audio_pulse=no | 495 audio_pulse=no |
496 | 496 |
497 PULSE_REQUIRED_VERSION=0.9 | 497 PULSE_REQUIRED_VERSION=0.9 |
498 | 498 |
499 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | 499 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
508 AC_MSG_RESULT($audio_pulse) | 508 AC_MSG_RESULT($audio_pulse) |
509 | 509 |
510 if test x$audio_pulse = xyes; then | 510 if test x$audio_pulse = xyes; then |
511 AC_ARG_ENABLE(pulseaudio-shared, | 511 AC_ARG_ENABLE(pulseaudio-shared, |
512 AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]), | 512 AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]), |
513 , enable_pulse_shared=yes) | 513 , enable_pulseaudio_shared=yes) |
514 if test "x`echo $PULSE_LIBS | grep -- -L`" = "x"; then | 514 if test "x`echo $PULSE_LIBS | grep -- -L`" = "x"; then |
515 if test "x`ls /$base_libdir/libpulse-simple.so.* 2> /dev/null`" != "x"; then | 515 if test "x`ls /$base_libdir/libpulse-simple.so.* 2> /dev/null`" != "x"; then |
516 PULSE_LIBS="-L/$base_libdir $PULSE_LIBS" | 516 PULSE_LIBS="-L/$base_libdir $PULSE_LIBS" |
517 elif test "x`ls /usr/$base_libdir/libpulse-simple.so.* 2> /dev/null`" != "x"; then | 517 elif test "x`ls /usr/$base_libdir/libpulse-simple.so.* 2> /dev/null`" != "x"; then |
518 PULSE_LIBS="-L/usr/$base_libdir $PULSE_LIBS" | 518 PULSE_LIBS="-L/usr/$base_libdir $PULSE_LIBS" |
529 | 529 |
530 AC_DEFINE(SDL_AUDIO_DRIVER_PULSE) | 530 AC_DEFINE(SDL_AUDIO_DRIVER_PULSE) |
531 SOURCES="$SOURCES $srcdir/src/audio/pulse/*.c" | 531 SOURCES="$SOURCES $srcdir/src/audio/pulse/*.c" |
532 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS" | 532 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS" |
533 if test x$have_loadso != xyes && \ | 533 if test x$have_loadso != xyes && \ |
534 test x$enable_pulse_shared = xyes; then | 534 test x$enable_pulseaudio_shared = xyes; then |
535 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic PulseAudio loading]) | 535 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic PulseAudio loading]) |
536 fi | 536 fi |
537 if test x$have_loadso = xyes && \ | 537 if test x$have_loadso = xyes && \ |
538 test x$enable_pulse_shared = xyes && test x$pulse_lib != x; then | 538 test x$enable_pulseaudio_shared = xyes && test x$pulse_lib != x; then |
539 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSE_DYNAMIC, "$pulse_lib") | 539 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSE_DYNAMIC, "$pulse_lib") |
540 else | 540 else |
541 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS" | 541 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS" |
542 fi | 542 fi |
543 have_audio=yes | 543 have_audio=yes |