On 2009/09/07 14:01, Serge Ziryukin <ftrvxm...@gmail.com> wrote:
>  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

Does pkg-config not work?  If not, why does nobody fix the .pc file,
instead of adding such a non-portable hack to every program which
wants to use OpenAL?

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to