summaryrefslogtreecommitdiff
path: root/multimedia/libmpeg2/patches/patch-aa
blob: 8747d9afe3a68321bb0b4ffeba4f20feaec8ea0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
$NetBSD: patch-aa,v 1.7 2022/09/25 14:43:27 he Exp $

--- configure.orig	2008-07-18 16:41:54.000000000 +0200
+++ configure
@@ -4672,7 +4672,7 @@ echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
 
     TRY_CFLAGS=`echo "$OPT_CFLAGS $CFLAGS"|sed "s/-O[0-9]*//g"`
 
-    TRY_CFLAGS="$TRY_CFLAGS -O3"
+    TRY_CFLAGS="$OPT_CFLAGS $CFLAGS"
     { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS flags" >&5
 echo $ECHO_N "checking if $CC supports $TRY_CFLAGS flags... $ECHO_C" >&6; }
     SAVE_CFLAGS="$CFLAGS"
@@ -4981,6 +4981,7 @@ cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
+#include <altivec.h>
 int
 main ()
 {
@@ -5007,8 +5008,12 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
 	 test -z "$ac_c_werror_flag" ||
 	 test ! -s conftest.err
        } && test -s conftest.$ac_objext; then
-  have_altivec=yes; { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_ALTIVEC_H
+_ACEOF
+
+			 have_altivec=yes; { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
@@ -5019,7 +5024,6 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-#include <altivec.h>
 int
 main ()
 {
@@ -5045,13 +5049,8 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
 	 test -z "$ac_c_werror_flag" ||
 	 test ! -s conftest.err
        } && test -s conftest.$ac_objext; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_ALTIVEC_H
-_ACEOF
-
-			 have_altivec=yes; { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
+  have_altivec=yes; { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5