# HG changeset patch # User pontscho # Date 991736192 0 # Node ID 1c285eec0ba0983863bb0041e72cfbf14125e5c8 # Parent a710b2a0656496a6154f1e7e3672a886a46a6a4d add and disable esd detection support ;) diff -r a710b2a06564 -r 1c285eec0ba0 configure --- a/configure Tue Jun 05 08:49:11 2001 +0000 +++ b/configure Tue Jun 05 10:16:32 2001 +0000 @@ -6,6 +6,8 @@ # # Changes in reversed order: # +# 2001/06/05 by Pontscho +# - added alsa and esd detection # # 2001/06/05 by Nick Kurshev # - added checking of kernel version @@ -115,8 +117,9 @@ --enable-xmmp use XMMP audio drivers --enable-lirc enable LIRC (remote control) support - --disable-alsa disable alsa support [autodetect] - + --disable-alsa disable alsa support [autodetect] + --disable-esd disable esd sound support [autodetect] + --disable-gcc-checking disable gcc version checking --disable-select disable audio select() support ( for example required this @@ -292,6 +295,7 @@ _gui=no; _alsa=yes +_esd=yes for i in `echo $pparam`; do @@ -596,29 +600,37 @@ cat > $TMPC << EOF #include -#include -int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==5)return 1; return 0; } +#include +int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==5)return 0; return 1; } EOF -_alsaver='notfound' -$_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no +_alsaver='not found' +$_cc -o $TMPO -lasound $TMPC 2> /dev/null || _alsa=no +[ $_alsa == 'yes' ] && $TMPO && { _alsaver='0.5.x'; } -[ $_alsa == "yes" ] && $TMPO && { _alsaver='0.5.x'; } - -if [ $_alsaver = 'notfound' ]; then +if [ $_alsaver == 'not found' ]; then cat > $TMPC << EOF #include -#include -int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==9)return 1; return 0; } +#include +int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==9)return 0; return 1; } EOF -_alsaver='notfound' -$_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no -[ $_alsa == "yes" ] && $TMPO && { _alsaver='0.9.x'; } +_alsaver='not found' +$_cc -o $TMPO -lasound $TMPC 2> /dev/null || _alsa=no +[ $_alsa == 'yes' ] && $TMPO && { _alsaver='0.9.x'; } fi # --- +cat > $TMPC << EOF +#include +int main( void ){ return 0; } +EOF + +$_cc -o $TMPO -lesd $TMPC 2> /dev/null || { _esd=no; } + +# --- + # check for the parameters. _prefix="/usr/local" @@ -792,6 +804,9 @@ _alsaver='notfound' _alsa=no ;; + --disable-esd) + _esd=no + ;; --with-win32libdir=*) _win32libdir=`echo $ac_option | cut -d '=' -f 2` _win32libdirnotify=no @@ -936,6 +951,7 @@ echo "Checking for DirectShow ... $_dshow" echo "Checking for fastmemcpy ... $_fastmemcpy" echo "Checking for alsa ... $_alsaver" +echo "Checking for esd ... $_esd" # write conf files. if [ $_gl = yes ]; then @@ -1221,13 +1237,18 @@ _gui='#undef HAVE_GUI' fi -if [ "$_alsaver" != "notfound" ]; then -[ $_alsaver == '0.5.x' ] && { _aosrc="$_aosrc ao_alsa5.c"; $_alsa='#define HAVE_ALSA5'; } -# [ $_alsaver == '0.9.x' ] && { _aosrc="$_aosrc ao_alsa9.c"; } -else - _alsa=' ' +_alsa5='#undef HAVE_ALSA5' +_alsa9='#undef HAVE_ALSA9' +if [ $_alsa == 'yes' ]; then + [ $_alsaver == '0.5.x' ] && { _aosrc="$_aosrc ao_alsa5.c"; _alsa5='#define HAVE_ALSA5'; } + # [ $_alsaver == '0.9.x' ] && { _aosrc="$_aosrc ao_alsa9.c"; _alsa9='#define HAVE_ALSA9'; } fi - + +_esdd='#undef HAVE_ESD' +if [ $_esd == 'yes' ]; then + _esdd='#undef HAVE_ESD' +fi + cat > $CCONF << EOF /* -------- Generated by ./configure ----------- */ @@ -1296,8 +1317,10 @@ $_gui #define PREFIX "$_prefix" -/* ALSA support */ -$_alsa +/* Audio lib drivers */ +$_alsa5 +$_alsa9 +$_esdd /* Enable fast OSD/SUB renderer (looks ugly, but uses less CPU power) */ #undef FAST_OSD