* updated kmousetool (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / multimedia / libmpeg2 / altivec.patch
blobbd31a94518d9fb0c709ade5e0841de0d027b3f6c
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../libmpeg2/altivec.patch
5 # Copyright (C) 2020 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
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
14 # version.
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
19 @@ -79,11 +79,10 @@
20 CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS"
21 AC_MSG_CHECKING([if <altivec.h> is needed])
22 AC_TRY_COMPILE([],
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
35 @@ -4984,8 +4984,7 @@
36 int
37 main ()
39 -typedef vector int t;
40 - vec_ld(0, (unsigned char *)0);
41 + vector int t; t = vec_add(t,t);
43 return 0;
45 @@ -5023,7 +5022,7 @@
46 int
47 main ()
49 -typedef vector int t; vec_ld(0, (unsigned char *)0);
50 +vector t; t = vec_add(t,t);
52 return 0;