[MPlayer-dev-eng] [PATCH] configure on amd64

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Sat Sep 18 13:57:17 CEST 2004


On Saturday, 18 September 2004 at 11:35, Reimar Döffinger wrote:
> Hi,
> 
> >Not only does the given patch not work, but it breaks the configure
> >script for amd64.  At least on my system.
> 
> Just as a sidenote: That patch only fixed compilation with -m32. Sorry, 
> I didn't know that when I posted that patch...

Just to show that I do have something working, here's a patch that makes
MPlayer compile and work on one Gentoo/Opteron system, although I didn't
have 32bit Xlibs installed there, so I couldn't test any display.
Additionally, VESA doesn't compile due to non-existent(?) kernel headers.
I don't recommend this to be applied just yet, though.

-- 
MPlayer RPMs maintainer: http://greysector.rangers.eu.org/mplayer/
"I am Grey. I stand between the candle and the star. We are Grey.
 We stand between the darkness ... and the light."
        -- Delenn in Grey Council in Babylon 5:"Babylon Squared"
-------------- next part --------------
--- mplayer/configure.x86_64	2004-09-07 18:58:41.000000000 +0200
+++ mplayer/configure	2004-09-09 13:09:44.000000000 +0200
@@ -75,7 +75,7 @@
 # x86/x86pc is used by QNX
 x86() {
   case "$host_arch" in
-    i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686) return 0 ;;
+    i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686|x86_64) return 0 ;;
     *) return 1 ;;
   esac
 }
@@ -659,7 +659,8 @@
 fi
 
 case "$host_arch" in
-  i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
+  i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686|x86_64)
+# put AMD Opteron here until we rewrite all assembly parts for 64bit
   _def_arch="#define ARCH_X86 1"
   _target_arch="TARGET_ARCH_X86 = yes"
 
@@ -737,7 +738,11 @@
 		proc=athlon # TODO: should the Duron Spitfire be considered a Thunderbird instead?
 	fi
 	;;
-    
+
+    15) proc=athlon-xp iproc=686 # Opteron is x86-compatible
+	_cc="$_cc -m32"
+	_as="$_as --32"
+    ;;
     *) proc=athlon-xp iproc=686 ;;
     esac
     ;;
@@ -3911,7 +3916,7 @@
 
 echocheck "VESA support"
 if test "$_vesa" = auto ; then
-if x86 && linux ; then
+if x86 && linux && test "$host_arch" != "x86_64" ; then
   _vesa=no
   cat > $TMPC << EOF
 #include <sys/io.h>


More information about the MPlayer-dev-eng mailing list