Mercurial > mplayer.hg
comparison configure @ 11455:22f8732b5d97
cumulative libc5 compatibility patch ;)
- VESA detection by sys/io.h header
- workaround a missing define on libc5
author | gabucino |
---|---|
date | Thu, 13 Nov 2003 20:53:40 +0000 |
parents | 561d2db800f6 |
children | 1531f1690612 |
comparison
equal
deleted
inserted
replaced
11454:74c7ac1698bc | 11455:22f8732b5d97 |
---|---|
2096 cc_check && _inttypes=yes | 2096 cc_check && _inttypes=yes |
2097 if test "$_inttypes" = yes ; then | 2097 if test "$_inttypes" = yes ; then |
2098 # nothing to do | 2098 # nothing to do |
2099 : | 2099 : |
2100 else | 2100 else |
2101 die "cannot find header inttypes.h (see DOCS/HTML/en/faq.html)" | 2101 echores "no" |
2102 echocheck "bitypes.h (inttypes.h predecessor)" | |
2103 cat > $TMPC << EOF | |
2104 #include <sys/bitypes.h> | |
2105 int main(void) { return 0; } | |
2106 EOF | |
2107 _inttypes=no | |
2108 cc_check && _inttypes=yes | |
2109 if test "$_inttypes" = yes ; then | |
2110 die "you don't have inttypes.h, but sys/bitypes.h is present. Please copy etc/inttypes.h.link into the include path, and re-run configure." | |
2111 else | |
2112 die "cannot find header either inttypes.h or bitypes.h (see DOCS/HTML/en/faq.html)" | |
2113 fi | |
2102 fi | 2114 fi |
2103 echores "$_inttypes" | 2115 echores "$_inttypes" |
2104 | 2116 |
2105 | 2117 |
2106 echocheck "int_fastXY_t in inttypes.h" | 2118 echocheck "int_fastXY_t in inttypes.h" |
3502 fi | 3514 fi |
3503 ;; | 3515 ;; |
3504 esac | 3516 esac |
3505 | 3517 |
3506 | 3518 |
3507 if test "$_vesa" != no ; then | |
3508 echocheck "VESA support" | 3519 echocheck "VESA support" |
3520 if test "$_vesa" = auto ; then | |
3509 if x86 && linux ; then | 3521 if x86 && linux ; then |
3522 _vesa=no | |
3523 cat > $TMPC << EOF | |
3524 #include <sys/io.h> | |
3525 int main(void) { return 0; } | |
3526 EOF | |
3527 cc_check && _vesa=yes | |
3528 fi | |
3529 fi | |
3530 if test "$_vesa" = yes ; then | |
3510 _def_vesa='#define HAVE_VESA 1' | 3531 _def_vesa='#define HAVE_VESA 1' |
3511 _vosrc="$_vosrc vo_vesa.c vesa_lvo.c" | 3532 _vosrc="$_vosrc vo_vesa.c vesa_lvo.c" |
3512 _vomodules="vesa $_vomodules" | 3533 _vomodules="vesa $_vomodules" |
3513 echores "yes" | 3534 echores "yes" |
3514 else | 3535 else |
3515 _def_vesa='#undef HAVE_VESA' | 3536 _def_vesa='#undef HAVE_VESA' |
3537 echores "no (not supported on this OS/architecture)" | |
3516 _novomodules="vesa $_novomodules" | 3538 _novomodules="vesa $_novomodules" |
3517 echores "no (not supported on this OS/architecture)" | 3539 fi |
3518 fi | |
3519 else | |
3520 _def_vesa='#undef HAVE_VESA' | |
3521 fi | |
3522 | |
3523 | 3540 |
3524 ################# | 3541 ################# |
3525 # VIDEO + AUDIO # | 3542 # VIDEO + AUDIO # |
3526 ################# | 3543 ################# |
3527 | 3544 |
5876 #define MPLAYER_CONFIG_H 1 | 5893 #define MPLAYER_CONFIG_H 1 |
5877 | 5894 |
5878 /* use GNU internationalization */ | 5895 /* use GNU internationalization */ |
5879 $_def_i18n | 5896 $_def_i18n |
5880 | 5897 |
5898 /* missing mmap function on libc5 systems */ | |
5899 #ifndef MAP_FAILED | |
5900 # define MAP_FAILED ((void *) -1) | |
5901 #endif | |
5902 | |
5881 /* use setlocale() function */ | 5903 /* use setlocale() function */ |
5882 $_def_setlocale | 5904 $_def_setlocale |
5883 | 5905 |
5884 /* Runtime CPU detection */ | 5906 /* Runtime CPU detection */ |
5885 $_def_runtime_cpudetection | 5907 $_def_runtime_cpudetection |