Mercurial > mplayer.hg
comparison configure @ 12185:97bbb47c0a04
win32 macro added to simplify detecting both Cygwin and MinGW.
author | diego |
---|---|
date | Tue, 13 Apr 2004 01:01:46 +0000 |
parents | 4a3a984b2fb4 |
children | bd67f85c6440 |
comparison
equal
deleted
inserted
replaced
12184:17667db616d3 | 12185:97bbb47c0a04 |
---|---|
67 qnx() { issystem "QNX" ; return "$?" ; } | 67 qnx() { issystem "QNX" ; return "$?" ; } |
68 darwin() { issystem "Darwin" ; return "$?" ; } | 68 darwin() { issystem "Darwin" ; return "$?" ; } |
69 gnu() { issystem "GNU" ; return "$?" ; } | 69 gnu() { issystem "GNU" ; return "$?" ; } |
70 mingw32() { issystem "MINGW32" ; return "$?" ; } | 70 mingw32() { issystem "MINGW32" ; return "$?" ; } |
71 morphos() { issystem "MorphOS" ; return "$?" ; } | 71 morphos() { issystem "MorphOS" ; return "$?" ; } |
72 win32() { cygwin || mingw32 ; return "$?" ; } | |
72 | 73 |
73 # arch test boolean functions | 74 # arch test boolean functions |
74 # x86/x86pc is used by QNX | 75 # x86/x86pc is used by QNX |
75 x86() { | 76 x86() { |
76 case "$host_arch" in | 77 case "$host_arch" in |
1837 _vidix=no | 1838 _vidix=no |
1838 # should check for x86 systems supporting VIDIX (does QNX have VIDIX?) | 1839 # should check for x86 systems supporting VIDIX (does QNX have VIDIX?) |
1839 x86 && _vidix=yes | 1840 x86 && _vidix=yes |
1840 ppc && linux && _vidix=yes | 1841 ppc && linux && _vidix=yes |
1841 alpha && linux && _vidix=yes | 1842 alpha && linux && _vidix=yes |
1842 cygwin && _vidix=no | 1843 win32 && _vidix=no |
1843 mingw32 && _vidix=no | |
1844 qnx && _vidix=no | 1844 qnx && _vidix=no |
1845 sunos && _vidix=no | 1845 sunos && _vidix=no |
1846 fi | 1846 fi |
1847 | 1847 |
1848 # On QNX we must link to libph - Gabucino | 1848 # On QNX we must link to libph - Gabucino |
3185 fi | 3185 fi |
3186 | 3186 |
3187 | 3187 |
3188 echocheck "OpenGL" | 3188 echocheck "OpenGL" |
3189 #Note: this test is run even with --enable-gl since we autodetect $_ld_gl | 3189 #Note: this test is run even with --enable-gl since we autodetect $_ld_gl |
3190 if (test "$_x11" = yes || mingw32 || cygwin) && test "$_gl" != no ; then | 3190 if (test "$_x11" = yes || win32) && test "$_gl" != no ; then |
3191 cat > $TMPC << EOF | 3191 cat > $TMPC << EOF |
3192 #include <GL/gl.h> | 3192 #include <GL/gl.h> |
3193 int main(void) { return 0; } | 3193 int main(void) { return 0; } |
3194 EOF | 3194 EOF |
3195 _gl=no | 3195 _gl=no |
4133 fi | 4133 fi |
4134 | 4134 |
4135 echocheck "DVD support (libmpdvdkit)" | 4135 echocheck "DVD support (libmpdvdkit)" |
4136 if test "$_dvdkit" = auto ; then | 4136 if test "$_dvdkit" = auto ; then |
4137 _dvdkit=no | 4137 _dvdkit=no |
4138 if linux || freebsd || netbsd || darwin || cygwin || mingw32 || openbsd || sunos || hpux; then | 4138 if linux || freebsd || netbsd || darwin || openbsd || win32 || sunos || hpux; then |
4139 test -f "./libmpdvdkit2/Makefile" && _dvdkit=yes | 4139 test -f "./libmpdvdkit2/Makefile" && _dvdkit=yes |
4140 test -f "./libmpdvdkit/Makefile" && _dvdkit=yes | 4140 test -f "./libmpdvdkit/Makefile" && _dvdkit=yes |
4141 fi | 4141 fi |
4142 fi | 4142 fi |
4143 if test "$_dvdkit" = yes ; then | 4143 if test "$_dvdkit" = yes ; then |
4144 if test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || test "$_dvdio" = yes || test "$_bsdi_dvd" = yes || test "$_hpux_scsi_h" = yes || darwin || cygwin || mingw32 ; then | 4144 if test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || test "$_dvdio" = yes || test "$_bsdi_dvd" = yes || test "$_hpux_scsi_h" = yes || darwin || win32 ; then |
4145 if test -f "./libmpdvdkit2/Makefile" ; then | 4145 if test -f "./libmpdvdkit2/Makefile" ; then |
4146 _inputmodules="mpdvdkit2 $_inputmodules" | 4146 _inputmodules="mpdvdkit2 $_inputmodules" |
4147 _dvdread=libmpdvdkit2 | 4147 _dvdread=libmpdvdkit2 |
4148 _dvdkit2=yes | 4148 _dvdkit2=yes |
4149 _dvdkit=no | 4149 _dvdkit=no |
4774 fi | 4774 fi |
4775 | 4775 |
4776 if test "$_win32" != no ; then | 4776 if test "$_win32" != no ; then |
4777 _def_win32_loader='#undef WIN32_LOADER' | 4777 _def_win32_loader='#undef WIN32_LOADER' |
4778 echocheck "Win32 loader support" | 4778 echocheck "Win32 loader support" |
4779 if not cygwin && not mingw32 ; then | 4779 if not win32 ; then |
4780 _ld_win32='loader/libloader.a' | 4780 _ld_win32='loader/libloader.a' |
4781 _dep_win32='loader/libloader.a' | 4781 _dep_win32='loader/libloader.a' |
4782 _codecmodules="win32 $_codecmodules" | 4782 _codecmodules="win32 $_codecmodules" |
4783 if openbsd ; then | 4783 if openbsd ; then |
4784 x86 && _ld_win32="$_ld_win32 -li386" | 4784 x86 && _ld_win32="$_ld_win32 -li386" |
4885 echocheck "RealPlayer DLL" | 4885 echocheck "RealPlayer DLL" |
4886 if test "$_real" = auto ; then | 4886 if test "$_real" = auto ; then |
4887 _real=no | 4887 _real=no |
4888 if test "$_dl" = yes || test "$_win32" = yes ; then | 4888 if test "$_dl" = yes || test "$_win32" = yes ; then |
4889 # if test "$_dl" = yes ; then | 4889 # if test "$_dl" = yes ; then |
4890 if linux || freebsd || netbsd || cygwin || mingw32 ; then | 4890 if linux || freebsd || netbsd || win32 ; then |
4891 _real=yes | 4891 _real=yes |
4892 else | 4892 else |
4893 echores "no (tested only on Linux/FreeBSD/NetBSD/Cygwin/MinGW)" | 4893 echores "no (tested only on Linux/FreeBSD/NetBSD/Cygwin/MinGW)" |
4894 fi | 4894 fi |
4895 if test "$_real" = yes ; then | 4895 if test "$_real" = yes ; then |
5098 _def_libavformat_win32='#undef CONFIG_WIN32' | 5098 _def_libavformat_win32='#undef CONFIG_WIN32' |
5099 if test "$_libavformat" = yes ; then | 5099 if test "$_libavformat" = yes ; then |
5100 _def_libavformat='#define USE_LIBAVFORMAT 1' | 5100 _def_libavformat='#define USE_LIBAVFORMAT 1' |
5101 _ld_libavformat='libavformat/libavformat.a' | 5101 _ld_libavformat='libavformat/libavformat.a' |
5102 _dep_libavformat='libavformat/libavformat.a' | 5102 _dep_libavformat='libavformat/libavformat.a' |
5103 if mingw32 || cygwin ; then | 5103 if win32 ; then |
5104 _def_libavformat_win32='#define CONFIG_WIN32 1' | 5104 _def_libavformat_win32='#define CONFIG_WIN32 1' |
5105 fi | 5105 fi |
5106 fi | 5106 fi |
5107 | 5107 |
5108 echocheck "libdv-0.9.5+" | 5108 echocheck "libdv-0.9.5+" |
5788 _confmingw32='TARGET_MINGW32 = yes' | 5788 _confmingw32='TARGET_MINGW32 = yes' |
5789 else | 5789 else |
5790 _confmingw32='TARGET_MINGW32 = no' | 5790 _confmingw32='TARGET_MINGW32 = no' |
5791 fi | 5791 fi |
5792 | 5792 |
5793 if mingw32 || cygwin ; then | 5793 if win32 ; then |
5794 _confwin32='TARGET_WIN32 = yes' | 5794 _confwin32='TARGET_WIN32 = yes' |
5795 else | 5795 else |
5796 _confwin32='TARGET_WIN32 = no' | 5796 _confwin32='TARGET_WIN32 = no' |
5797 fi | 5797 fi |
5798 | 5798 |
5822 _vosrc="$_vosrc vo_cvidix.c" | 5822 _vosrc="$_vosrc vo_cvidix.c" |
5823 _vomodules="cvidix $_vomodules" | 5823 _vomodules="cvidix $_vomodules" |
5824 else | 5824 else |
5825 _novomodules="cvidix $_novomodules" | 5825 _novomodules="cvidix $_novomodules" |
5826 fi | 5826 fi |
5827 if test "$_vidix" = yes && (cygwin || mingw32); then | 5827 if test "$_vidix" = yes && (win32); then |
5828 _vosrc="$_vosrc vo_winvidix.c" | 5828 _vosrc="$_vosrc vo_winvidix.c" |
5829 _vomodules="winvidix $_vomodules" | 5829 _vomodules="winvidix $_vomodules" |
5830 else | 5830 else |
5831 _novomodules="winvidix $_novomodules" | 5831 _novomodules="winvidix $_novomodules" |
5832 fi | 5832 fi |