Mercurial > mplayer.hg
comparison configure @ 27256:d2f920cb9847
ALSA stupidly tries to define struct timeval and struct timespec, which
may cause compilation errors. Check for this and disable ALSA.
author | reimar |
---|---|
date | Tue, 15 Jul 2008 16:39:26 +0000 |
parents | aff85d51de87 |
children | 208d7534f510 |
comparison
equal
deleted
inserted
replaced
27255:aff85d51de87 | 27256:d2f920cb9847 |
---|---|
5195 | 5195 |
5196 echocheck "ALSA audio" | 5196 echocheck "ALSA audio" |
5197 if test "$_alsa" != no ; then | 5197 if test "$_alsa" != no ; then |
5198 _alsa=no | 5198 _alsa=no |
5199 cat > $TMPC << EOF | 5199 cat > $TMPC << EOF |
5200 #include <sys/time.h> | |
5200 #include <sys/asoundlib.h> | 5201 #include <sys/asoundlib.h> |
5201 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 5)) | 5202 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 5)) |
5202 #error "alsa version != 0.5.x" | 5203 #error "alsa version != 0.5.x" |
5203 #endif | 5204 #endif |
5204 int main(void) { return 0; } | 5205 int main(void) { return 0; } |
5205 EOF | 5206 EOF |
5206 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.5.x' | 5207 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.5.x' |
5207 | 5208 |
5208 cat > $TMPC << EOF | 5209 cat > $TMPC << EOF |
5210 #include <sys/time.h> | |
5209 #include <sys/asoundlib.h> | 5211 #include <sys/asoundlib.h> |
5210 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) | 5212 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) |
5211 #error "alsa version != 0.9.x" | 5213 #error "alsa version != 0.9.x" |
5212 #endif | 5214 #endif |
5213 int main(void) { return 0; } | 5215 int main(void) { return 0; } |
5214 EOF | 5216 EOF |
5215 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-sys' | 5217 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-sys' |
5216 cat > $TMPC << EOF | 5218 cat > $TMPC << EOF |
5219 #include <sys/time.h> | |
5217 #include <alsa/asoundlib.h> | 5220 #include <alsa/asoundlib.h> |
5218 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) | 5221 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) |
5219 #error "alsa version != 0.9.x" | 5222 #error "alsa version != 0.9.x" |
5220 #endif | 5223 #endif |
5221 int main(void) { return 0; } | 5224 int main(void) { return 0; } |
5222 EOF | 5225 EOF |
5223 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-alsa' | 5226 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-alsa' |
5224 | 5227 |
5225 cat > $TMPC << EOF | 5228 cat > $TMPC << EOF |
5229 #include <sys/time.h> | |
5226 #include <sys/asoundlib.h> | 5230 #include <sys/asoundlib.h> |
5227 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) | 5231 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) |
5228 #error "alsa version != 1.0.x" | 5232 #error "alsa version != 1.0.x" |
5229 #endif | 5233 #endif |
5230 int main(void) { return 0; } | 5234 int main(void) { return 0; } |
5231 EOF | 5235 EOF |
5232 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='1.0.x-sys' | 5236 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='1.0.x-sys' |
5233 cat > $TMPC << EOF | 5237 cat > $TMPC << EOF |
5238 #include <sys/time.h> | |
5234 #include <alsa/asoundlib.h> | 5239 #include <alsa/asoundlib.h> |
5235 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) | 5240 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) |
5236 #error "alsa version != 1.0.x" | 5241 #error "alsa version != 1.0.x" |
5237 #endif | 5242 #endif |
5238 int main(void) { return 0; } | 5243 int main(void) { return 0; } |