summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2017-10-20 04:42:13 +0200
committerDiego Biurrun <diego@biurrun.de>2018-02-06 11:13:19 +0100
commitfd36cf6bf6524247a8ff6788c028836fe7d9fd20 (patch)
treee51637033057001f158950f6e56251a4dc21ff90 /configure
parent38434a9ff5b9a1a048f32c1c7e2a9519cf12f8ba (diff)
downloadffmpeg-streaming-fd36cf6bf6524247a8ff6788c028836fe7d9fd20.zip
ffmpeg-streaming-fd36cf6bf6524247a8ff6788c028836fe7d9fd20.tar.gz
configure: Factorize check_64_bit()
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure b/configure
index b4c6320..ed930e6 100755
--- a/configure
+++ b/configure
@@ -3773,7 +3773,7 @@ check_host_cflags $host_cflags_speed
check_64bit(){
arch32=$1
arch64=$2
- expr=$3
+ expr=${3:-'sizeof(void *) > 4'}
check_code cc "" "int test[2*($expr) - 1]" &&
subarch=$arch64 || subarch=$arch32
enable $subarch
@@ -3788,23 +3788,23 @@ case "$arch" in
enabled shared && enable_weak pic
;;
parisc)
- check_64bit parisc parisc64 'sizeof(void *) > 4'
+ check_64bit parisc parisc64
enabled shared && enable_weak pic
;;
ppc)
- check_64bit ppc ppc64 'sizeof(void *) > 4'
+ check_64bit ppc ppc64
enabled shared && enable_weak pic
;;
s390)
- check_64bit s390 s390x 'sizeof(void *) > 4'
+ check_64bit s390 s390x
enabled shared && enable_weak pic
;;
sparc)
- check_64bit sparc sparc64 'sizeof(void *) > 4'
+ check_64bit sparc sparc64
enabled shared && enable_weak pic
;;
x86)
- check_64bit x86_32 x86_64 'sizeof(void *) > 4'
+ check_64bit x86_32 x86_64
if enabled x86_64; then
enabled shared && enable_weak pic
objformat=elf64
OpenPOWER on IntegriCloud