summaryrefslogtreecommitdiff
path: root/recipes/ffmpeg/ffmpeg-0.4.9-pre1/configure.patch
blob: 10fa0ce6b22ffe673abfa934071f29f95c29586f (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
--- ./configure~configure.patch	2004-07-06 03:36:16.000000000 +0930
+++ ./configure	2004-09-27 00:07:23.000000000 +0930
@@ -88,7 +88,7 @@
 mandir=""
 bindir=""
 cross_prefix=""
-cc="gcc"
+cc="$CC"
 ar="ar"
 ranlib="ranlib"
 make="make"
@@ -104,7 +104,7 @@
     cpu="x86"
   ;;
   # armv4l is a subset of armv5tel
-  armv4l|armv5tel)
+  armv4l|armv5tel|arm|xscale)
     cpu="armv4l"
   ;;
   alpha)
@@ -434,6 +434,37 @@
   esac
 done
 
+case "$cpu" in
+  i386|i486|i586|i686|i86pc|BePC)
+    cpu="x86"
+  ;;
+  # armv4l is a subset of armv5tel
+  armv4l|armv5tel|arm|xscale)
+    cpu="armv4l"
+  ;;
+  alpha)
+    cpu="alpha"
+  ;;
+  "Power Macintosh"|ppc)
+    cpu="powerpc"
+  ;;
+  mips)
+    cpu="mips"
+  ;;
+  sun4u|sparc64)
+    cpu="sparc64"
+  ;;
+  sparc)
+    cpu="sparc"
+  ;;
+  sh4)
+    cpu="sh4"
+  ;;
+  *)
+    cpu="unknown"
+  ;;
+esac
+
 if test "$gpl" != "yes"; then
     if test "$pp" != "no" -o "$shared_pp" != "no"; then
         echo "The Postprocessing code is under GPL and --enable-gpl is not specified"
@@ -662,7 +693,6 @@
     bindir="$prefix"
 fi
 
-cc="${cross_prefix}${cc}"
 ar="${cross_prefix}${ar}"
 ranlib="${cross_prefix}${ranlib}"
 strip="${cross_prefix}${strip}"
@@ -753,21 +783,6 @@
 fi
 
 if test "$zlib" = "yes"; then
-# check for zlib - mmu_man
-cat > $TMPC << EOF
-#include <zlib.h>
-int main ( void ) {
-if (zlibVersion() != ZLIB_VERSION)
-   puts("zlib version differs !!!");
-   return 1;
-return 0;
-}
-EOF
-$cc $CFLAGS -o $TMPE $TMPC -lz 2> /dev/null || zlib="no"
-# $TMPE 2> /dev/null > /dev/null || zlib="no"
-# XXX: more tests needed - runtime test
-fi
-if test "$zlib" = "yes"; then
 extralibs="$extralibs -lz"
 fi
 
@@ -881,24 +896,8 @@
 ##########################################
 # SDL probe
 
-cat > $TMPC << EOF
-#include <SDL.h>
-#undef main /* We don't want SDL to override our main() */
-int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
-EOF
-
 sdl_too_old=no
-sdl=no
-if sdl-config --version >/dev/null 2>&1 ; then
-if $cc -o $TMPE `sdl-config --cflags` $TMPC `sdl-config --libs`  > /dev/null 2>&1  ; then
-_sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
-if test "$_sdlversion" -lt 121 ; then
-sdl_too_old=yes
-else
 sdl=yes
-fi
-fi
-fi
 
 ##########################################
 # texi2html probe