AC_SUBST([LIBAO_LIBS]) dnl check for oss AC_ARG_ENABLE([oss], [ --disable-oss make a version not using oss]) if test x"$enable_oss" != x"no"; then case "$host" in *-linux*|*-openbsd*|*-freebsd*|*-netbsd*|*-bsdi*) AC_DEFINE([LIBAO_OSS],,[libao OSS support]) AC_CHECK_LIB([ossaudio],[_oss_ioctl], [LIBAO_LIBS="$LIBAO_LIBS -lossaudio"]);; esac fi dnl check for solaris AC_ARG_ENABLE([solaris-audio], [ --disable-solaris-audio make a version not using solaris audio]) if test x"$enable_solaris_audio" != x"no"; then case "$host" in *-sun-solaris*) AC_DEFINE([LIBAO_SOLARIS],,[libao solaris support]);; esac fi dnl check for al AC_ARG_ENABLE([al-audio], [ --disable-al-audio make a version not using al audio]) if test x"$enable_al" != x"no"; then case "$host" in *-sgi-irix*) LIBAO_LIBS="$LIBAO_LIBS -laudio" AC_DEFINE([LIBAO_AL],,[libao al support]);; esac fi dnl check for win32 AC_ARG_ENABLE([win], [ --disable-win make a version not using win audio]) if test x"$enable_win" != x"no"; then case "$host" in *-mingw32*|*-cygwin) LIBAO_LIBS="$LIBAO_LIBS -lwinmm" AC_DEFINE([LIBAO_WIN],,[libao win support]);; esac fi