From 761771ad245ef6103862e4cc6bb5efdac8a17a84 Mon Sep 17 00:00:00 2001 From: Serge Ziryukin Date: Mon, 7 Sep 2009 15:01:38 +0300 Subject: output/openal: support OpenAL plugin on Mac OS X --- configure.ac | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d30e89229..e221855ca 100644 --- a/configure.ac +++ b/configure.ac @@ -791,9 +791,19 @@ fi AM_CONDITIONAL(HAVE_OSS, test x$enable_oss = xyes) if test x$enable_openal = xyes; then - PKG_CHECK_MODULES([OPENAL], [openal], - AC_DEFINE(HAVE_OPENAL, 1, [Define for OpenAL support]), - enable_openal=no) + if test x$enable_osx = xyes; then + AC_CHECK_HEADERS([OpenAL/al.h OpenAL/alc.h], [], [enable_openal=no]) + if test x$enable_openal = xyes; then + OPENAL_LIBS="-framework OpenAL" + AC_DEFINE(HAVE_OPENAL, 1, [Define for OpenAL support]) + else + AC_MSG_WARN(OpenAL headers not found -- disabling OpenAL support) + fi + else + PKG_CHECK_MODULES([OPENAL], [openal], + AC_DEFINE(HAVE_OPENAL, 1, [Define for OpenAL support]), + enable_openal=no) + fi fi if test x$enable_openal = xyes; then -- cgit v1.2.3