mirror of https://github.com/odrling/Aegisub
Fix pulseaudio/portaudio detection.
Originally committed to SVN as r2691.
This commit is contained in:
parent
a194575488
commit
57bdedbaa7
23
configure.in
23
configure.in
|
@ -444,27 +444,30 @@ AM_CONDITIONAL([HAVE_PORTAUDIO], [test "$with_portaudio" != "no"])
|
|||
|
||||
AC_ARG_WITH(pulseaudio,[ --without-pulseaudio build without PulseAudio audio provider.
|
||||
(default: auto)], pulseaudio_disabled="(disabled)")
|
||||
if test "x$with_pulseaudio" != xno; then
|
||||
PKG_CHECK_MODULES(LIBPULSE, libpulse >= 0.5, [found_audio=yes; with_pulseaudio=yes], [with_pulseaudio=no])
|
||||
if test "$with_pulseaudio" != "no"; then
|
||||
PKG_CHECK_MODULES(LIBPULSE, libpulse >= 0.5, [with_pulseaudio="yes"], [with_pulseaudio="no"])
|
||||
fi
|
||||
|
||||
AC_AGI_COMPILE([PuleseAudio], [pulseaudio], [$LIBPULSE_CFLAGS], [$LIBPULSE_LIBS],[
|
||||
if test "$with_pulseaudio" != "no"; then
|
||||
AC_AGI_COMPILE([PuleseAudio], [pulseaudio], [$LIBPULSE_CFLAGS], [$LIBPULSE_LIBS],[
|
||||
#include <pulse/pulseaudio.h>
|
||||
int main(void) {
|
||||
pa_threaded_mainloop *mainloop = pa_threaded_mainloop_new();
|
||||
if (!mainloop) return 1;
|
||||
return 0;
|
||||
}])
|
||||
pa_threaded_mainloop *mainloop = pa_threaded_mainloop_new();
|
||||
if (!mainloop) return 1;
|
||||
return 0;
|
||||
} ])
|
||||
fi
|
||||
|
||||
if test "$agi_cv_with_pulseaudio" = "no" && test "$with_pulseaudio" = "yes"; then
|
||||
AC_MSG_WARN([PulseAudio detected, but it doesn't work...])
|
||||
with_pulseaudio="no"
|
||||
else
|
||||
AC_DEFINE(WITH_PULSEAUDIO, 1, [Enable PulseAudio support])
|
||||
found_audio="yes"
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([HAVE_PULSEAUDIO], [test "$with_pulseaudio" != "no"])
|
||||
if test "$with_pulseaudio" = "yes"; then
|
||||
AC_DEFINE(WITH_PULSEAUDIO, 1, [Enable PulseAudio support])
|
||||
fi
|
||||
|
||||
|
||||
#########
|
||||
## OpenAL
|
||||
|
|
Loading…
Reference in New Issue