[MPlayer-cvslog] r37534 - trunk/configure

rtogni subversion at mplayerhq.hu
Sat Oct 3 22:04:55 CEST 2015


Author: rtogni
Date: Sat Oct  3 22:04:55 2015
New Revision: 37534

Log:
Add support for POWER6-7-8
Enable VSX for POWER7 and POWER8

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sat Oct  3 13:21:15 2015	(r37533)
+++ trunk/configure	Sat Oct  3 22:04:55 2015	(r37534)
@@ -2557,6 +2557,29 @@ case "$host_arch" in
                 *) ;;
             esac
         fi
+        # gcc 4.2 and up supports POWER6
+        if test "$_cc_major" -ge "4" && test "$_cc_minor" -ge "2" || test "$_cc_major" -ge "5"; then
+            case "$proc" in
+                POWER6*) _march='-mcpu=power6' _mcpu='-mtune=power6' ;;
+                *) ;;
+            esac
+        fi
+        # gcc 4.5 and up supports POWER7
+        if test "$_cc_major" -ge "4" && test "$_cc_minor" -ge "5" || test "$_cc_major" -ge "5"; then
+            case "$proc" in
+                POWER7*) _march='-mcpu=power7' _mcpu='-mtune=power7' ;;
+                      def_vsx='#define HAVE_VSX 1' ;;
+                *) ;;
+            esac
+        fi
+        # gcc 4.9 and up supports POWER8
+        if test "$_cc_major" -ge "4" && test "$_cc_minor" -ge "9" || test "$_cc_major" -ge "5"; then
+            case "$proc" in
+                POWER8*) _march='-mcpu=power8' _mcpu='-mtune=power8' ;;
+                      def_vsx='#define HAVE_VSX 1' ;;
+                *) ;;
+            esac
+        fi
     fi
 
     if test -n "$_mcpu"; then


More information about the MPlayer-cvslog mailing list