Originally committed as revision 19490 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård authored on 2009/07/23 05:41:41... | ... |
@@ -1985,6 +1985,22 @@ check_cc <<EOF && enable inline_asm |
1985 | 1985 |
void foo(void) { __asm__ volatile ("" ::); } |
1986 | 1986 |
EOF |
1987 | 1987 |
|
1988 |
+_restrict= |
|
1989 |
+for restrict_keyword in restrict __restrict__ __restrict; do |
|
1990 |
+ check_cc <<EOF && _restrict=$restrict_keyword && break |
|
1991 |
+void foo(char * $restrict_keyword p); |
|
1992 |
+EOF |
|
1993 |
+done |
|
1994 |
+ |
|
1995 |
+check_cc <<EOF && enable attribute_packed |
|
1996 |
+struct { int x; } __attribute__((packed)) x; |
|
1997 |
+EOF |
|
1998 |
+ |
|
1999 |
+check_cc <<EOF || die "endian test failed" |
|
2000 |
+unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E'; |
|
2001 |
+EOF |
|
2002 |
+od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian |
|
2003 |
+ |
|
1988 | 2004 |
if enabled arm; then |
1989 | 2005 |
check_ld <<EOF && enable vfp_args |
1990 | 2006 |
__asm__ (".eabi_attribute 28, 1"); |
... | ... |
@@ -2078,11 +2094,6 @@ EOF |
2078 | 2078 |
disabled yasm || { check_yasm "pabsw xmm0, xmm0" && enable yasm; } |
2079 | 2079 |
fi |
2080 | 2080 |
|
2081 |
-check_cc <<EOF || die "endian test failed" |
|
2082 |
-unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E'; |
|
2083 |
-EOF |
|
2084 |
-od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian |
|
2085 |
- |
|
2086 | 2081 |
if check_func dlopen; then |
2087 | 2082 |
ldl= |
2088 | 2083 |
elif check_func dlopen -ldl; then |
... | ... |
@@ -2194,18 +2205,6 @@ if enabled libdc1394; then |
2194 | 2194 |
die "ERROR: No version of libdc1394 found " |
2195 | 2195 |
fi |
2196 | 2196 |
|
2197 |
- |
|
2198 |
-_restrict= |
|
2199 |
-for restrict_keyword in restrict __restrict__ __restrict; do |
|
2200 |
- check_cc <<EOF && _restrict=$restrict_keyword && break |
|
2201 |
-void foo(char * $restrict_keyword p); |
|
2202 |
-EOF |
|
2203 |
-done |
|
2204 |
- |
|
2205 |
-check_cc <<EOF && enable attribute_packed |
|
2206 |
-struct { int x; } __attribute__((packed)) x; |
|
2207 |
-EOF |
|
2208 |
- |
|
2209 | 2197 |
disable sdl_too_old |
2210 | 2198 |
disable sdl |
2211 | 2199 |
SDL_CONFIG="${cross_prefix}sdl-config" |