diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-15 17:06:28 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-15 17:06:28 +0000 |
commit | c50a336acf09143cbd7fe983f9a5f82212648e05 (patch) | |
tree | 1fff64234c00fa4c1cb1092a220ca800c3c95d9a | |
parent | b24be2fd8308afa509ff1ec95cf96cf2a7e939c4 (diff) | |
download | mpv-c50a336acf09143cbd7fe983f9a5f82212648e05.tar.bz2 mpv-c50a336acf09143cbd7fe983f9a5f82212648e05.tar.xz |
Add AmigaOS support, patch by Andrea Palmatè, andrea amigasoft net.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22616 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -115,6 +115,7 @@ darwin() { issystem "Darwin" ; return "$?" ; } gnu() { issystem "GNU" ; return "$?" ; } mingw32() { issystem "MINGW32" ; return "$?" ; } morphos() { issystem "MorphOS" ; return "$?" ; } +amigaos() { issystem "AmigaOS" ; return "$?" ; } win32() { cygwin || mingw32 ; return "$?" ; } beos() { issystem "BEOS" ; return "$?" ; } @@ -1147,7 +1148,7 @@ if test -z "$_target" ; then # OS name system_name=`uname -s 2>&1` case "$system_name" in - Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS|AIX) + Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS|AIX|AmigaOS) ;; IRIX*) system_name=IRIX @@ -1222,6 +1223,7 @@ else # if test -z "$_target" sunos) system_name=SunOS ;; qnx) system_name=QNX ;; morphos) system_name=MorphOS ;; + amigaos) system_name=AmigaOS ;; mingw32msvc) system_name=MINGW32 ;; esac # We need to convert underscores so that values like k6-2 and pentium-mmx can be passed @@ -1293,6 +1295,13 @@ if mingw32 ; then _def_stream_cache="#undef USE_STREAM_CACHE" fi +if amigaos ; then + _select=no + _sighandler=no + _stream_cache=no + _def_stream_cache="#undef USE_STREAM_CACHE" +fi + # Check how to call 'head' and 'tail'. Newer versions spit out warnings # if used as 'head -1' instead of 'head -n 1', but older versions don't # know about '-n'. @@ -7166,6 +7175,9 @@ if darwin ; then # libavcodec (from ffmpeg) requires CONFIG_DARWIN to enable AltiVec on Darwin/MacOSX test "$_altivec" = yes && CFLAGS="$CFLAGS -DCONFIG_DARWIN" fi +if amigaos ; then + CFLAGS="$CFLAGS -DNEWLIB -D__USE_INLINE__ -DSYS_AMIGAOS4" +fi if hpux ; then # use flag for HPUX missing setenv() CFLAGS="$CFLAGS -DHPUX" @@ -8133,6 +8145,9 @@ $_def_vcd #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #define DEFAULT_CDROM_DEVICE "/dev/acd0" #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE +#elif defined(SYS_AMIGAOS4) +#define DEFAULT_CDROM_DEVICE "a1ide.device:2" +#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE #else #define DEFAULT_CDROM_DEVICE "/dev/cdrom" #define DEFAULT_DVD_DEVICE "/dev/dvd" |