Mercurial > mplayer.hg
comparison configure @ 19433:e1ec9b9bf6f7
Some more consistency for the conditions under which tests are run.
author | diego |
---|---|
date | Fri, 18 Aug 2006 16:04:16 +0000 |
parents | 2052a90d9c29 |
children | 185942a2f517 |
comparison
equal
deleted
inserted
replaced
19432:2052a90d9c29 | 19433:e1ec9b9bf6f7 |
---|---|
1699 _inet6=auto | 1699 _inet6=auto |
1700 _gethostbyname2=auto | 1700 _gethostbyname2=auto |
1701 _ftp=yes | 1701 _ftp=yes |
1702 _musepack=auto | 1702 _musepack=auto |
1703 _vstream=auto | 1703 _vstream=auto |
1704 _pthreads=yes | 1704 _pthreads=auto |
1705 _ass=auto | 1705 _ass=auto |
1706 _rpath=no | 1706 _rpath=no |
1707 _asmalign_pot=auto | 1707 _asmalign_pot=auto |
1708 for ac_option do | 1708 for ac_option do |
1709 case "$ac_option" in | 1709 case "$ac_option" in |
2736 fi | 2736 fi |
2737 echores "$_use_aton" | 2737 echores "$_use_aton" |
2738 fi | 2738 fi |
2739 | 2739 |
2740 _def_use_aton='#undef USE_ATON' | 2740 _def_use_aton='#undef USE_ATON' |
2741 if test "$_use_aton" != no; then | 2741 if test "$_use_aton" = yes; then |
2742 _def_use_aton='#define USE_ATON 1' | 2742 _def_use_aton='#define USE_ATON 1' |
2743 fi | 2743 fi |
2744 | 2744 |
2745 | 2745 |
2746 echocheck "inttypes.h (required)" | 2746 echocheck "inttypes.h (required)" |
2941 #echores "using $_ld_dl_dynamic" | 2941 #echores "using $_ld_dl_dynamic" |
2942 | 2942 |
2943 _def_threads='#undef HAVE_THREADS' | 2943 _def_threads='#undef HAVE_THREADS' |
2944 | 2944 |
2945 echocheck "pthread" | 2945 echocheck "pthread" |
2946 if test "$_pthreads" != no ; then | 2946 if test "$_pthreads" = auto ; then |
2947 cat > $TMPC << EOF | 2947 cat > $TMPC << EOF |
2948 #include <pthread.h> | 2948 #include <pthread.h> |
2949 void* func(void *arg) { return arg; } | 2949 void* func(void *arg) { return arg; } |
2950 int main(void) { pthread_t tid; return pthread_create (&tid, 0, func, 0) == 0 ? 0 : 1; } | 2950 int main(void) { pthread_t tid; return pthread_create (&tid, 0, func, 0) == 0 ? 0 : 1; } |
2951 EOF | 2951 EOF |
3812 echores "no" | 3812 echores "no" |
3813 fi | 3813 fi |
3814 | 3814 |
3815 | 3815 |
3816 echocheck "Xv" | 3816 echocheck "Xv" |
3817 if test "$_x11" = yes && test "$_xv" != no ; then | 3817 if test "$_x11" = yes && test "$_xv" = auto ; then |
3818 cat > $TMPC <<EOF | 3818 cat > $TMPC <<EOF |
3819 #include <X11/Xlib.h> | 3819 #include <X11/Xlib.h> |
3820 #include <X11/extensions/Xvlib.h> | 3820 #include <X11/extensions/Xvlib.h> |
3821 int main(void) { | 3821 int main(void) { |
3822 (void) XvGetPortAttribute(0, 0, 0, 0); | 3822 (void) XvGetPortAttribute(0, 0, 0, 0); |
3868 fi | 3868 fi |
3869 echores "$_xvmc" | 3869 echores "$_xvmc" |
3870 | 3870 |
3871 | 3871 |
3872 echocheck "Xinerama" | 3872 echocheck "Xinerama" |
3873 if test "$_x11" = yes && test "$_xinerama" != no ; then | 3873 if test "$_x11" = yes && test "$_xinerama" = auto ; then |
3874 cat > $TMPC <<EOF | 3874 cat > $TMPC <<EOF |
3875 #include <X11/Xlib.h> | 3875 #include <X11/Xlib.h> |
3876 #include <X11/extensions/Xinerama.h> | 3876 #include <X11/extensions/Xinerama.h> |
3877 int main(void) { (void) XineramaIsActive(0); return 0; } | 3877 int main(void) { (void) XineramaIsActive(0); return 0; } |
3878 EOF | 3878 EOF |
5866 | 5866 |
5867 | 5867 |
5868 | 5868 |
5869 if x86 && not qnx; then | 5869 if x86 && not qnx; then |
5870 | 5870 |
5871 if test "$_win32" != no ; then | 5871 if test "$_win32" = auto ; then |
5872 if test -z "$_win32libdir" ; then | 5872 if test -z "$_win32libdir" ; then |
5873 for I in "$_libdir/codecs" "$_libdir/win32" /usr/local/lib/codecs /usr/lib/codecs /usr/local/lib/win32 /usr/lib/win32 ; do | 5873 for I in "$_libdir/codecs" "$_libdir/win32" /usr/local/lib/codecs /usr/lib/codecs /usr/local/lib/win32 /usr/lib/win32 ; do |
5874 if test -d "$I" ; then | 5874 if test -d "$I" ; then |
5875 _win32libdir="$I" | 5875 _win32libdir="$I" |
5876 break; | 5876 break; |
6466 cc_check $_ld_lm "$_ld_xvid" && _xvidcompat=yes | 6466 cc_check $_ld_lm "$_ld_xvid" && _xvidcompat=yes |
6467 echores "$_xvidcompat" | 6467 echores "$_xvidcompat" |
6468 fi | 6468 fi |
6469 | 6469 |
6470 echocheck "x264" | 6470 echocheck "x264" |
6471 cat > $TMPC << EOF | 6471 if test "$_x264" = auto ; then |
6472 cat > $TMPC << EOF | |
6472 #include <inttypes.h> | 6473 #include <inttypes.h> |
6473 #include <x264.h> | 6474 #include <x264.h> |
6474 #if X264_BUILD < 48 | 6475 #if X264_BUILD < 48 |
6475 #error We do not support old versions of x264. Get the latest from SVN. | 6476 #error We do not support old versions of x264. Get the latest from SVN. |
6476 #endif | 6477 #endif |
6477 int main(void) { x264_encoder_open((void*)0); return 0; } | 6478 int main(void) { x264_encoder_open((void*)0); return 0; } |
6478 EOF | 6479 EOF |
6479 _ld_x264="$_ld_x264 -lx264 $_ld_pthread" | 6480 _ld_x264="$_ld_x264 -lx264 $_ld_pthread" |
6480 if test "$_x264" != no ; then | |
6481 _x264=no | 6481 _x264=no |
6482 if cc_check $_ld_x264 $_ld_lm ; then | 6482 if cc_check $_ld_x264 $_ld_lm ; then |
6483 _x264=yes | 6483 _x264=yes |
6484 elif test "$_x11" = yes && cc_check $_ld_x264 $_ld_x11 $_ld_lm ; then | 6484 elif test "$_x11" = yes && cc_check $_ld_x264 $_ld_x11 $_ld_lm ; then |
6485 _x264=yes | 6485 _x264=yes |
6687 echores "$_select" | 6687 echores "$_select" |
6688 | 6688 |
6689 | 6689 |
6690 echocheck "network" | 6690 echocheck "network" |
6691 # FIXME network check | 6691 # FIXME network check |
6692 if test "$_network" != no ; then | 6692 if test "$_network" = yes ; then |
6693 _def_network='#define MPLAYER_NETWORK 1' | 6693 _def_network='#define MPLAYER_NETWORK 1' |
6694 _ld_network="$_ld_sock" | 6694 _ld_network="$_ld_sock" |
6695 _inputmodules="network $_inputmodules" | 6695 _inputmodules="network $_inputmodules" |
6696 else | 6696 else |
6697 _noinputmodules="network $_noinputmodules" | 6697 _noinputmodules="network $_noinputmodules" |
6699 _ftp=no | 6699 _ftp=no |
6700 fi | 6700 fi |
6701 echores "$_network" | 6701 echores "$_network" |
6702 | 6702 |
6703 echocheck "ftp" | 6703 echocheck "ftp" |
6704 if not beos && test "$_ftp" != no ; then | 6704 if not beos && test "$_ftp" = yes ; then |
6705 _def_ftp='#define HAVE_FTP 1' | 6705 _def_ftp='#define HAVE_FTP 1' |
6706 _inputmodules="ftp $_inputmodules" | 6706 _inputmodules="ftp $_inputmodules" |
6707 else | 6707 else |
6708 _noinputmodules="ftp $_noinputmodules" | 6708 _noinputmodules="ftp $_noinputmodules" |
6709 _def_ftp='#undef HAVE_FTP' | 6709 _def_ftp='#undef HAVE_FTP' |