Commit d4c99513 authored by Mans Rullgard's avatar Mans Rullgard

configure: generalise 64-bit test

Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent c44cef97
...@@ -2668,13 +2668,20 @@ EOF ...@@ -2668,13 +2668,20 @@ EOF
check_host_cflags -std=c99 check_host_cflags -std=c99
check_host_cflags -Wall check_host_cflags -Wall
check_64bit(){
arch32=$1
arch64=$2
expr=$3
check_code cc "" "int test[2*($expr) - 1]" &&
subarch=$arch64 || subarch=$arch32
}
case "$arch" in case "$arch" in
alpha|ia64|mips|parisc|sparc) alpha|ia64|mips|parisc|sparc)
spic=$shared spic=$shared
;; ;;
x86) x86)
subarch="x86_32" check_64bit x86_32 x86_64 'sizeof(void *) > 4'
check_code cc "" "int test[(int)sizeof(char*) - 7]" && subarch="x86_64"
if test "$subarch" = "x86_64"; then if test "$subarch" = "x86_64"; then
spic=$shared spic=$shared
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment