openal: Fix AL header path for Mac OS X

OpenAL.framework doesn't provide 'alext.h'.
Thus, openal is enabled only if the dependency
is set by pkg-config.

fixes: #852
This commit is contained in:
Justin Kim 2018-12-24 23:05:55 +09:00
parent b5af1b9f2e
commit 2faa08ff28
3 changed files with 1 additions and 9 deletions

View file

@ -32,10 +32,6 @@
#include <al.h>
#include <alc.h>
#include <alext.h>
#elif defined(__APPLE__)
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
#include <OpenAL/alext.h>
#else
#include <AL/al.h>
#include <AL/alc.h>

View file

@ -56,10 +56,6 @@
#include <al.h>
#include <alc.h>
#include <alext.h>
#elif defined(__APPLE__)
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
#include <OpenAL/alext.h>
#else
#include <AL/al.h>
#include <AL/alc.h>

View file

@ -1,4 +1,4 @@
openal_dep = dependency('openal', version: '>= 1.14', required: get_option('openal'))
openal_dep = dependency('openal', method: 'pkg-config', version: '>= 1.14', required: get_option('openal'))
if openal_dep.found()
gstopenal = library('gstopenal',