updated configure.ac to support OpenAL on mac better (the original script broke 10.4 compatibility)

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2849 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-01-06 17:15:51 +00:00
parent 6db1a0c9ce
commit 52bfa1b506

View File

@ -123,8 +123,16 @@ save_LIBS=$LIBS
case "${host}" in
*darwin*|*macosx*)
LIBS="-framework OpenAL $LIBS"
have_al_lib=yes
# search for OpenAL installed in a UNIX way first. This is necessary since OS X 10.4
# comes with an OpenAL framework that's too old, so to retain 10.4 support we need to
# build OpenAL from source, and can't use Apple's framework.
AC_SEARCH_LIBS(alGenBuffers, [openal alut], have_al_lib=yes)
# We couldn't find OpenAL installed the UNIX way, so fall back to using frameworks
if test x$have_al_lib != xyes; then
LIBS="-framework OpenAL $LIBS"
have_al_lib=yes
fi
;;
*)
AC_SEARCH_LIBS(alGenBuffers, [openal alut], have_al_lib=yes)