[MPlayer-dev-eng] [PATCH] Minor 'configure' modifications for AIX/POWER

Derek E. Lewis dlewis at solnetworks.net
Fri Jan 20 20:55:31 CET 2006


POWER5 detection has been added, and I removed the DCBZL definition for 
POWER4.  Only Apple assemblers are aware of DCBZL.

Derek E. Lewis
dlewis at solnetworks.net
http://riemann.solnetworks.net/~dlewis
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1125
diff -u -r1.1125 configure
--- configure	20 Jan 2006 00:58:07 -0000	1.1125
+++ configure	20 Jan 2006 19:44:17 -0000
@@ -1237,8 +1237,14 @@
 	# gcc 3.3 and up supports POWER4
 	if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then
 	    case "$proc" in
-		POWER4) _march='-mcpu=power4' _mcpu='-mtune=power4'
-			_def_dcbzl='#undef NO_DCBZL' ;;
+		POWER4) _march='-mcpu=power4' _mcpu='-mtune=power4' ;;
+		*) ;;
+	    esac
+	fi
+	# gcc 4.0 and up supports POWER5
+	if test "$_cc_major" -ge "4"; then
+	    case "$proc" in
+		POWER5) _march='-mcpu=power5' _mcpu='-mtune=power5' ;;
 		*) ;;
 	    esac
 	fi


More information about the MPlayer-dev-eng mailing list