mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
configure: group tests for compiler characteristics together
Originally committed as revision 19490 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a036c1b537
commit
df5e397839
33
configure
vendored
33
configure
vendored
@ -1985,6 +1985,22 @@ check_cc <<EOF && enable inline_asm
|
|||||||
void foo(void) { __asm__ volatile ("" ::); }
|
void foo(void) { __asm__ volatile ("" ::); }
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
_restrict=
|
||||||
|
for restrict_keyword in restrict __restrict__ __restrict; do
|
||||||
|
check_cc <<EOF && _restrict=$restrict_keyword && break
|
||||||
|
void foo(char * $restrict_keyword p);
|
||||||
|
EOF
|
||||||
|
done
|
||||||
|
|
||||||
|
check_cc <<EOF && enable attribute_packed
|
||||||
|
struct { int x; } __attribute__((packed)) x;
|
||||||
|
EOF
|
||||||
|
|
||||||
|
check_cc <<EOF || die "endian test failed"
|
||||||
|
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
|
||||||
|
EOF
|
||||||
|
od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
|
||||||
|
|
||||||
if enabled arm; then
|
if enabled arm; then
|
||||||
check_ld <<EOF && enable vfp_args
|
check_ld <<EOF && enable vfp_args
|
||||||
__asm__ (".eabi_attribute 28, 1");
|
__asm__ (".eabi_attribute 28, 1");
|
||||||
@ -2078,11 +2094,6 @@ EOF
|
|||||||
disabled yasm || { check_yasm "pabsw xmm0, xmm0" && enable yasm; }
|
disabled yasm || { check_yasm "pabsw xmm0, xmm0" && enable yasm; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_cc <<EOF || die "endian test failed"
|
|
||||||
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
|
|
||||||
EOF
|
|
||||||
od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
|
|
||||||
|
|
||||||
if check_func dlopen; then
|
if check_func dlopen; then
|
||||||
ldl=
|
ldl=
|
||||||
elif check_func dlopen -ldl; then
|
elif check_func dlopen -ldl; then
|
||||||
@ -2194,18 +2205,6 @@ if enabled libdc1394; then
|
|||||||
die "ERROR: No version of libdc1394 found "
|
die "ERROR: No version of libdc1394 found "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
_restrict=
|
|
||||||
for restrict_keyword in restrict __restrict__ __restrict; do
|
|
||||||
check_cc <<EOF && _restrict=$restrict_keyword && break
|
|
||||||
void foo(char * $restrict_keyword p);
|
|
||||||
EOF
|
|
||||||
done
|
|
||||||
|
|
||||||
check_cc <<EOF && enable attribute_packed
|
|
||||||
struct { int x; } __attribute__((packed)) x;
|
|
||||||
EOF
|
|
||||||
|
|
||||||
disable sdl_too_old
|
disable sdl_too_old
|
||||||
disable sdl
|
disable sdl
|
||||||
SDL_CONFIG="${cross_prefix}sdl-config"
|
SDL_CONFIG="${cross_prefix}sdl-config"
|
||||||
|
Loading…
Reference in New Issue
Block a user