Re-format PulseAudio detection block. (legacy)
Originally committed to SVN as r2692.
This commit is contained in:
parent
57bdedbaa7
commit
b6661ec3a4
1 changed files with 9 additions and 8 deletions
17
configure.in
17
configure.in
|
@ -474,11 +474,12 @@ 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
|
||||||
|
|
||||||
AC_AGI_COMPILE([OpenAL], [openal], [$OPENAL_CFLAGS], [$OPENAL_LIBS],[
|
if test "$with_openal" != "no"; then
|
||||||
|
AC_AGI_COMPILE([OpenAL], [openal], [$OPENAL_CFLAGS], [$OPENAL_LIBS],[
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
#include <OpenAL/AL.h>
|
#include <OpenAL/AL.h>
|
||||||
#include <OpenAL/ALC.h>
|
#include <OpenAL/ALC.h>
|
||||||
|
@ -492,18 +493,18 @@ int main(void) {
|
||||||
ALCcontext *context = alcCreateContext(device, 0);
|
ALCcontext *context = alcCreateContext(device, 0);
|
||||||
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"])
|
||||||
|
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
|
|
Loading…
Reference in a new issue