Re-format PulseAudio detection block. (legacy)

Originally committed to SVN as r2692.
This commit is contained in:
Amar Takhar 2009-01-14 04:58:35 +00:00
parent 57bdedbaa7
commit b6661ec3a4

View file

@ -474,10 +474,11 @@ AM_CONDITIONAL([HAVE_PULSEAUDIO], [test "$with_pulseaudio" != "no"])
######### #########
AC_ARG_WITH(openal,[ --without-openal build without OpenAL audio provider. AC_ARG_WITH(openal,[ --without-openal build without OpenAL audio provider.
(default: auto)], openal_disabled="(disabled)") (default: auto)], openal_disabled="(disabled)")
if test "x$with_openal" != xno; then if test "$with_openal" != "no"; then
PKG_CHECK_MODULES(OPENAL, openal >= 0.0.8, [found_audio=yes; with_openal=yes], [with_openal=no]) PKG_CHECK_MODULES(OPENAL, openal >= 0.0.8, [with_openal=yes], [with_openal=no])
fi fi
if test "$with_openal" != "no"; then
AC_AGI_COMPILE([OpenAL], [openal], [$OPENAL_CFLAGS], [$OPENAL_LIBS],[ AC_AGI_COMPILE([OpenAL], [openal], [$OPENAL_CFLAGS], [$OPENAL_LIBS],[
#if defined(__APPLE__) #if defined(__APPLE__)
#include <OpenAL/AL.h> #include <OpenAL/AL.h>
@ -493,17 +494,17 @@ int main(void) {
if (!context) return 1; if (!context) return 1;
return 0; return 0;
} ]) } ])
fi
if test "$agi_cv_with_openal" = "no" && test "$with_openal" = "yes"; then if test "$agi_cv_with_openal" = "no" && test "$with_openal" = "yes"; then
AC_MSG_WARN([OpenAL detected, but it doesn't work...]) AC_MSG_WARN([OpenAL detected, but it doesn't work...])
with_openal="no" with_openal="no"
fi else
found_audio="yes"
AM_CONDITIONAL([HAVE_OPENAL], [test "$with_openal" != "no"])
if test "$with_openal" = "yes"; then
AC_DEFINE(WITH_OPENAL, 1, [Enable OpenAL support]) AC_DEFINE(WITH_OPENAL, 1, [Enable OpenAL support])
fi fi
AM_CONDITIONAL([HAVE_OPENAL], [test "$with_openal" != "no"])
######################### #########################