History

configure: Factorize check_64_bit()

Diego Biurrun committed 9 years ago

Commit fd36cf61 parent 38434a91 file · +6 −6Browse files

Unified · Split

configure+6−6
@@ -3773,7 +3773,7 @@ check_host_cflags $host_cflags_speed · 3772 unmodified lines
37733773 check_64bit(){
37743774 arch32=$1
37753775 arch64=$2
3776− expr=$3
3776+ expr=${3:-'sizeof(void *) > 4'}
37773777 check_code cc "" "int test[2*($expr) - 1]" &&
37783778 subarch=$arch64 || subarch=$arch32
37793779 enable $subarch
@@ -3788,23 +3788,23 @@ case "$arch" in · 8 unmodified lines
37883788 enabled shared && enable_weak pic
37893789 ;;
37903790 parisc)
3791− check_64bit parisc parisc64 'sizeof(void *) > 4'
3791+ check_64bit parisc parisc64
37923792 enabled shared && enable_weak pic
37933793 ;;
37943794 ppc)
3795− check_64bit ppc ppc64 'sizeof(void *) > 4'
3795+ check_64bit ppc ppc64
37963796 enabled shared && enable_weak pic
37973797 ;;
37983798 s390)
3799− check_64bit s390 s390x 'sizeof(void *) > 4'
3799+ check_64bit s390 s390x
38003800 enabled shared && enable_weak pic
38013801 ;;
38023802 sparc)
3803− check_64bit sparc sparc64 'sizeof(void *) > 4'
3803+ check_64bit sparc sparc64
38043804 enabled shared && enable_weak pic
38053805 ;;
38063806 x86)
3807− check_64bit x86_32 x86_64 'sizeof(void *) > 4'
3807+ check_64bit x86_32 x86_64
38083808 if enabled x86_64; then
38093809 enabled shared && enable_weak pic
38103810 objformat=elf64

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t