New patches: [fix build problem - Now OpenAL can build under Mac OS X platform. shelarcy **20060317230346] { hunk ./Sound/OpenAL/ALC/Capture.hs 15 - +#ifdef darwin_HOST_OS +module Sound.OpenAL.ALC.Capture where +#else hunk ./Sound/OpenAL/ALC/Capture.hs 140 +#endif + hunk ./aclocal.m4 171 + +# FP_CHECK_OPENAL +# ------------- +AC_DEFUN([FP_CHECK_OPENAL], +[AC_REQUIRE([AC_CANONICAL_TARGET]) +AL_CFLAGS= +case $target_os in +darwin*) + AL_LIBS= + AL_FRAMEWORKS=OpenAL + ;; +*) + AC_SEARCH_LIBS([alGenSources], [openal openal32], [AL_LIBS="$ac_cv_search_alGenSources"]) + test x"$AL_LIBS" = x"none required" && AL_LIBS= + AC_SUBST([AL_LIBS]) + AL_FRAMEWORKS= + ;; +esac +AC_SUBST([AL_CFLAGS]) +AC_SUBST([AL_FRAMEWORKS]) +])# FP_CHECK_OPENAL + hunk ./configure.ac 11 -# Shall we build this package at all? -FP_ARG_OPENAL hunk ./configure.ac 13 -if test x"$enable_openal" = xyes; then - hunk ./configure.ac 15 -# The following test for the OpenAL library is a bit of a hack, but gives nice -# feedback even for the case when no additional library is needed. (Mac OS X?) -AL_LIBS=no -AC_SEARCH_LIBS([alGenSources], [openal openal32], [AL_LIBS="$ac_cv_search_alGenSources"]) -test x"$AL_LIBS" = x"none required" && AL_LIBS= -AC_SUBST([AL_LIBS]) +# Shall we build this package at all? +FP_ARG_OPENAL + +if test x"$enable_openal" = xyes; then + +# Check for ALUT include paths and libraries +FP_CHECK_OPENAL hunk ./configure.ac 27 -# Ugly... -AL_FRAMEWORKS= -case $host_os in -darwin*) - AL_FRAMEWORKS=OpenAL - ;; -esac -AC_SUBST([AL_FRAMEWORKS]) - +# check for ALUT include files hunk ./configure.ac 30 -if test -z "$AL_FRAMEWORKS" && test x"$fp_found_al_header$fp_found_alc_header" != xyesyes; then + +if text x "$fp_found_al_header" = xno || test x"$fp_found_alc_header" = xno; then } Context: [TAG Initial conversion from CVS complete John Goerzen **20060112154136] Patch bundle hash: 69ba53d65f0bf0a3992a2ad102db247f4b490812