[vorbis-dev] Re: libao and recent ALSA builds

Marc Martinez lastxit+vorbis at technogeeks.org
Tue Jun 12 15:06:53 PDT 2001



On Tue, Jun 12, 2001 at 07:01:15PM +1000, Michael Smith wrote:
> At 08:13 PM 6/12/01 +1200, you wrote:
> >I had a go at building libao-0.6.0 and it barfed on the alsa output part, 
> >complaining that snd_pcm_channel_status_t is undeclared - probably due to me 
> >running alsa 0.9.0 beta4. So the question is, should I try and beat the 
> >configure stuff into letting me disable alsa support and just use OSS, or 
> >would I be better off trying my luck with the nightly builds?
> 
> Configure should let you disable alsa. It doesn't. This is a bug. Please
> feel free to report it at http://bugs.xiph.org/

here's a quick fix for configure.in (against the current cvs snapshot
archive) that lets you specify '--disable-alsa' to avoid trying to
build the plugin.

--- ao/configure.in	Thu May 17 08:28:44 2001
+++ ao.fixed/configure.in	Tue Jun 12 14:39:03 2001
@@ -131,8 +131,12 @@
 
 dnl Check for ALSA
 
-AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes, have_alsa=no)
-AM_CONDITIONAL(HAVE_ALSA,test "x$have_alsa" = xyes)
+AC_ARG_ENABLE(alsa, [  --enable-alsa           include alsa 0.5 output plugin ],
+[ BUILD_ALSA="$enableval" ],[ BUILD_ALSA="yes" ])
+if test "$BUILD_ALSA" = "yes"; then
+   AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes, have_alsa=no)
+   AM_CONDITIONAL(HAVE_ALSA,test "x$have_alsa" = xyes)
+fi
 
 if test "x$have_alsa" = xyes; then
         ALSA_LIBS="-lasound"

at least IWFM. :)

> Until it gets fixed, just hack configure, or fix the code (we'd prefer the
> latter, of course, but you might not :-)

I plan to check out the current docbook stuff for alsa to try and get
a handle on the new api changes (RSN), if nobody beats me to it I'll
probably see what I can hack out for a 0.9.x compatible plugin.

Marc

PS: I'm only subscribed to the user list currently, please CC on any
replies to -dev.

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list