Sound Support on Solaris with 21.4.20; Was: [Success with a little effort] XEmacs 21.4.19

Rodney Sparapani rsparapa at mcw.edu
Wed Dec 13 11:03:05 EST 2006


Rodney Sparapani wrote:
> Adrian Aichner wrote:
> 
>>
>> Hi Rodney, I was wondering about your configure options.
>>
>> Perhaps you could send the Installation file or output of
>> M-x describe-installation
>> unless you've already done so.
>>
>> Best regards!
>>
>> Adrian

This is a thread from April.  Long story short:  I created a "hack" to
get sound support working on Solaris on 21.4.19.  I call it
a "hack" because now I think I figured out that it was only dumb
luck that it worked and I can share the right way to do it.

My Solaris box has ESD and libaudiofile libraries, but nothing
else; no headers, pkg-config, etc.  I think these came from the
package SUNWaudmo, but it is no longer available.  If you upgraded from
Solaris 8, you may already have it installed.  So, I managed to
trick configure into believing that everything was ok with:

configure '--with-sound=esd' '--native-sound-lib=/usr/local/lib/libao.so'

and by adding the following to config.h:
#define play_sound_file esd_play_file
#define play_sound_data esd_play_stream

That hack no longer works for 21.4.20 because, I think, the detection
of esd is better (I didn't see that mentioned anywhere in NEWS, but
that's my suspicion).  So, the right way to do this is to install
libaudiofile v. 0.2.6 and ESD v. 0.2.8 (ESDs detection of libaudiofile
is squirrelly ?just for Solaris?, so I had to hard-code

AUDIOFILE_CONFIG=/usr/local/bin/audiofile-config

on line 3293 of configure).  Then with the following, everything works:

configure '--with-sound=esd'

Thanks,

Rodney




More information about the XEmacs-Beta mailing list