mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
configure: Factorize check_64_bit()
This commit is contained in:
parent
38434a9ff5
commit
fd36cf6bf6
12
configure
vendored
12
configure
vendored
@ -3773,7 +3773,7 @@ check_host_cflags $host_cflags_speed
|
|||||||
check_64bit(){
|
check_64bit(){
|
||||||
arch32=$1
|
arch32=$1
|
||||||
arch64=$2
|
arch64=$2
|
||||||
expr=$3
|
expr=${3:-'sizeof(void *) > 4'}
|
||||||
check_code cc "" "int test[2*($expr) - 1]" &&
|
check_code cc "" "int test[2*($expr) - 1]" &&
|
||||||
subarch=$arch64 || subarch=$arch32
|
subarch=$arch64 || subarch=$arch32
|
||||||
enable $subarch
|
enable $subarch
|
||||||
@ -3788,23 +3788,23 @@ case "$arch" in
|
|||||||
enabled shared && enable_weak pic
|
enabled shared && enable_weak pic
|
||||||
;;
|
;;
|
||||||
parisc)
|
parisc)
|
||||||
check_64bit parisc parisc64 'sizeof(void *) > 4'
|
check_64bit parisc parisc64
|
||||||
enabled shared && enable_weak pic
|
enabled shared && enable_weak pic
|
||||||
;;
|
;;
|
||||||
ppc)
|
ppc)
|
||||||
check_64bit ppc ppc64 'sizeof(void *) > 4'
|
check_64bit ppc ppc64
|
||||||
enabled shared && enable_weak pic
|
enabled shared && enable_weak pic
|
||||||
;;
|
;;
|
||||||
s390)
|
s390)
|
||||||
check_64bit s390 s390x 'sizeof(void *) > 4'
|
check_64bit s390 s390x
|
||||||
enabled shared && enable_weak pic
|
enabled shared && enable_weak pic
|
||||||
;;
|
;;
|
||||||
sparc)
|
sparc)
|
||||||
check_64bit sparc sparc64 'sizeof(void *) > 4'
|
check_64bit sparc sparc64
|
||||||
enabled shared && enable_weak pic
|
enabled shared && enable_weak pic
|
||||||
;;
|
;;
|
||||||
x86)
|
x86)
|
||||||
check_64bit x86_32 x86_64 'sizeof(void *) > 4'
|
check_64bit x86_32 x86_64
|
||||||
if enabled x86_64; then
|
if enabled x86_64; then
|
||||||
enabled shared && enable_weak pic
|
enabled shared && enable_weak pic
|
||||||
objformat=elf64
|
objformat=elf64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user