Mercurial > mplayer.hg
comparison configure @ 22598:f39115ea61bb
Add AmigaOS support, patch by Andrea Palmat, andrea amigasoft net.
author | diego |
---|---|
date | Thu, 15 Mar 2007 17:06:28 +0000 |
parents | 0ceb7442ae2b |
children | 1765c6c02f21 |
comparison
equal
deleted
inserted
replaced
22597:f826f57be4b4 | 22598:f39115ea61bb |
---|---|
113 qnx() { issystem "QNX" ; return "$?" ; } | 113 qnx() { issystem "QNX" ; return "$?" ; } |
114 darwin() { issystem "Darwin" ; return "$?" ; } | 114 darwin() { issystem "Darwin" ; return "$?" ; } |
115 gnu() { issystem "GNU" ; return "$?" ; } | 115 gnu() { issystem "GNU" ; return "$?" ; } |
116 mingw32() { issystem "MINGW32" ; return "$?" ; } | 116 mingw32() { issystem "MINGW32" ; return "$?" ; } |
117 morphos() { issystem "MorphOS" ; return "$?" ; } | 117 morphos() { issystem "MorphOS" ; return "$?" ; } |
118 amigaos() { issystem "AmigaOS" ; return "$?" ; } | |
118 win32() { cygwin || mingw32 ; return "$?" ; } | 119 win32() { cygwin || mingw32 ; return "$?" ; } |
119 beos() { issystem "BEOS" ; return "$?" ; } | 120 beos() { issystem "BEOS" ; return "$?" ; } |
120 | 121 |
121 # arch test boolean functions | 122 # arch test boolean functions |
122 # x86/x86pc is used by QNX | 123 # x86/x86pc is used by QNX |
1145 # Determine our OS name and CPU architecture | 1146 # Determine our OS name and CPU architecture |
1146 if test -z "$_target" ; then | 1147 if test -z "$_target" ; then |
1147 # OS name | 1148 # OS name |
1148 system_name=`uname -s 2>&1` | 1149 system_name=`uname -s 2>&1` |
1149 case "$system_name" in | 1150 case "$system_name" in |
1150 Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS|AIX) | 1151 Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS|AIX|AmigaOS) |
1151 ;; | 1152 ;; |
1152 IRIX*) | 1153 IRIX*) |
1153 system_name=IRIX | 1154 system_name=IRIX |
1154 ;; | 1155 ;; |
1155 GNU/kFreeBSD) | 1156 GNU/kFreeBSD) |
1220 bsd/os) system_name=BSD/OS ;; | 1221 bsd/os) system_name=BSD/OS ;; |
1221 openbsd) system_name=OpenBSD ;; | 1222 openbsd) system_name=OpenBSD ;; |
1222 sunos) system_name=SunOS ;; | 1223 sunos) system_name=SunOS ;; |
1223 qnx) system_name=QNX ;; | 1224 qnx) system_name=QNX ;; |
1224 morphos) system_name=MorphOS ;; | 1225 morphos) system_name=MorphOS ;; |
1226 amigaos) system_name=AmigaOS ;; | |
1225 mingw32msvc) system_name=MINGW32 ;; | 1227 mingw32msvc) system_name=MINGW32 ;; |
1226 esac | 1228 esac |
1227 # We need to convert underscores so that values like k6-2 and pentium-mmx can be passed | 1229 # We need to convert underscores so that values like k6-2 and pentium-mmx can be passed |
1228 host_arch=`echo $_target | cut -d '-' -f 1 | tr '_' '-'` | 1230 host_arch=`echo $_target | cut -d '-' -f 1 | tr '_' '-'` |
1229 fi | 1231 fi |
1287 # -lwinmm is always needed for osdep/timer-win2.c | 1289 # -lwinmm is always needed for osdep/timer-win2.c |
1288 _ld_extra="$_ld_extra -lwinmm" | 1290 _ld_extra="$_ld_extra -lwinmm" |
1289 fi | 1291 fi |
1290 | 1292 |
1291 if mingw32 ; then | 1293 if mingw32 ; then |
1294 _stream_cache=no | |
1295 _def_stream_cache="#undef USE_STREAM_CACHE" | |
1296 fi | |
1297 | |
1298 if amigaos ; then | |
1299 _select=no | |
1300 _sighandler=no | |
1292 _stream_cache=no | 1301 _stream_cache=no |
1293 _def_stream_cache="#undef USE_STREAM_CACHE" | 1302 _def_stream_cache="#undef USE_STREAM_CACHE" |
1294 fi | 1303 fi |
1295 | 1304 |
1296 # Check how to call 'head' and 'tail'. Newer versions spit out warnings | 1305 # Check how to call 'head' and 'tail'. Newer versions spit out warnings |
7163 CFLAGS="$CFLAGS -no-cpp-precomp" | 7172 CFLAGS="$CFLAGS -no-cpp-precomp" |
7164 fi | 7173 fi |
7165 | 7174 |
7166 # libavcodec (from ffmpeg) requires CONFIG_DARWIN to enable AltiVec on Darwin/MacOSX | 7175 # libavcodec (from ffmpeg) requires CONFIG_DARWIN to enable AltiVec on Darwin/MacOSX |
7167 test "$_altivec" = yes && CFLAGS="$CFLAGS -DCONFIG_DARWIN" | 7176 test "$_altivec" = yes && CFLAGS="$CFLAGS -DCONFIG_DARWIN" |
7177 fi | |
7178 if amigaos ; then | |
7179 CFLAGS="$CFLAGS -DNEWLIB -D__USE_INLINE__ -DSYS_AMIGAOS4" | |
7168 fi | 7180 fi |
7169 if hpux ; then | 7181 if hpux ; then |
7170 # use flag for HPUX missing setenv() | 7182 # use flag for HPUX missing setenv() |
7171 CFLAGS="$CFLAGS -DHPUX" | 7183 CFLAGS="$CFLAGS -DHPUX" |
7172 fi | 7184 fi |
8131 #define DEFAULT_CDROM_DEVICE "/dev/rcd0a" | 8143 #define DEFAULT_CDROM_DEVICE "/dev/rcd0a" |
8132 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE | 8144 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE |
8133 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) | 8145 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) |
8134 #define DEFAULT_CDROM_DEVICE "/dev/acd0" | 8146 #define DEFAULT_CDROM_DEVICE "/dev/acd0" |
8135 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE | 8147 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE |
8148 #elif defined(SYS_AMIGAOS4) | |
8149 #define DEFAULT_CDROM_DEVICE "a1ide.device:2" | |
8150 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE | |
8136 #else | 8151 #else |
8137 #define DEFAULT_CDROM_DEVICE "/dev/cdrom" | 8152 #define DEFAULT_CDROM_DEVICE "/dev/cdrom" |
8138 #define DEFAULT_DVD_DEVICE "/dev/dvd" | 8153 #define DEFAULT_DVD_DEVICE "/dev/dvd" |
8139 #endif | 8154 #endif |
8140 | 8155 |