[Mplayer-dev-eng] Fix for CVS build problems after solaris patches were checked in
Juergen Keil
jk at tools.de
Wed Jun 6 18:19:54 CEST 2001
Hi.
Sorry that my solaris 8 patches caused some problems on certain linux systems.
I've tested the configure script both on a suse 6.4 and a redhat 6.1 box
and the Sun style audio support was not detected there.
The following patch to configure should hopefully fix the build problems:
- A small test program is now used to check for the existance of OSS and
Sun style audio support
- Help output is now in line with the args checked in the code
Btw. the solaris 8 patch included two new files that did not make it into
the CVS version: DOCS/SOLARIS and libao2/ao_sun.c Both should be
'cvs add'ed into the CVS tree.
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.76
diff -u -B -r1.76 configure
--- configure 2001/06/05 18:40:44 1.76
+++ configure 2001/06/06 16:04:32
@@ -124,10 +124,10 @@
--enable-xmmp use XMMP audio drivers
--enable-lirc enable LIRC (remote control) support
- --disable-oss disable OSS sound support [autodetect]
+ --disable-ossaudio disable OSS sound support [autodetect]
--disable-alsa disable alsa sound support [autodetect]
--disable-esd disable esd sound support [autodetect]
- --disable-sun disable Sun sound support [autodetect]
+ --disable-sunaudio disable Sun sound support [autodetect]
--disable-gcc-checking disable gcc version checking
@@ -630,11 +630,23 @@
# ---
# try to detect type of audio supported on this machine
+cat > $TMPC << EOF
+#include <sys/soundcard.h>
+int main( void ) { int arg = SNDCTL_DSP_SETFRAGMENT; }
+EOF
+
_oss_audio=no
-[ -c /dev/dsp ] && _oss_audio=yes
+$_cc -o $TMPO $TMPC 2> /dev/null && _oss_audio=yes
+
+cat > $TMPC << EOF
+#include <sys/audioio.h>
+int main( void ) { audio_info_t info; AUDIO_INITINFO(&info); }
+EOF
+
_sun_audio=no
-[ -c /dev/audio -a -c /dev/audioctl ] && _sun_audio=yes
+$_cc -o $TMPO $TMPC 2> /dev/null && _sun_audio=yes
+
# ---
--
Jürgen Keil jk at tools.de
Tools GmbH +49 (228) 9858011
_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng
More information about the MPlayer-dev-eng
mailing list