diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-07-15 16:39:26 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-07-15 16:39:26 +0000 |
commit | b945a124efda487996d846324f94f05b15e0d160 (patch) | |
tree | 68d2988b90814495725fa7d6b095ffa44e6dc9ed /configure | |
parent | 727a1272bcd105ff2ea35977b8e96c3cc615a6d1 (diff) | |
download | mpv-b945a124efda487996d846324f94f05b15e0d160.tar.bz2 mpv-b945a124efda487996d846324f94f05b15e0d160.tar.xz |
ALSA stupidly tries to define struct timeval and struct timespec, which
may cause compilation errors. Check for this and disable ALSA.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27288 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5197,6 +5197,7 @@ echocheck "ALSA audio" if test "$_alsa" != no ; then _alsa=no cat > $TMPC << EOF +#include <sys/time.h> #include <sys/asoundlib.h> #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 5)) #error "alsa version != 0.5.x" @@ -5206,6 +5207,7 @@ EOF cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.5.x' cat > $TMPC << EOF +#include <sys/time.h> #include <sys/asoundlib.h> #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) #error "alsa version != 0.9.x" @@ -5214,6 +5216,7 @@ int main(void) { return 0; } EOF cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-sys' cat > $TMPC << EOF +#include <sys/time.h> #include <alsa/asoundlib.h> #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) #error "alsa version != 0.9.x" @@ -5223,6 +5226,7 @@ EOF cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-alsa' cat > $TMPC << EOF +#include <sys/time.h> #include <sys/asoundlib.h> #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) #error "alsa version != 1.0.x" @@ -5231,6 +5235,7 @@ int main(void) { return 0; } EOF cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='1.0.x-sys' cat > $TMPC << EOF +#include <sys/time.h> #include <alsa/asoundlib.h> #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) #error "alsa version != 1.0.x" |