1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/.../libmpeg2/altivec.patch
5 # Copyright (C) 2020 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- a/configure.ac.bak 2010-05-25 17:12:14.756245990 +0000
18 +++ b/configure.ac 2010-05-25 17:11:51.629581723 +0000
20 CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS"
21 AC_MSG_CHECKING([if <altivec.h> is needed])
23 - [typedef vector int t;
24 - vec_ld(0, (unsigned char *)0);],
25 + [vector int t; t = vec_add(t,t);],
26 [have_altivec=yes; AC_MSG_RESULT(no)],
27 [AC_TRY_COMPILE([#include <altivec.h>],
28 - [typedef vector int t; vec_ld(0, (unsigned char *)0);],
29 + [vector int t; t = vec_add(t,t);],
30 [AC_DEFINE([HAVE_ALTIVEC_H],,
31 [Define to 1 if you have the <altivec.h> header.])
32 have_altivec=yes; AC_MSG_RESULT(yes)],
33 --- a/configure.vanilla 2020-03-18 22:39:38.000000000 +0100
34 +++ b/configure 2020-03-18 22:41:50.000000000 +0100
39 -typedef vector int t;
40 - vec_ld(0, (unsigned char *)0);
41 + vector int t; t = vec_add(t,t);
49 -typedef vector int t; vec_ld(0, (unsigned char *)0);
50 +vector t; t = vec_add(t,t);