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
3773check_64bit(){3773check_64bit(){
3774 arch32=$13774 arch32=$1
3775 arch64=$23775 arch64=$2
3776 expr=$33776 expr=${3:-'sizeof(void *) > 4'}
3777 check_code cc "" "int test[2*($expr) - 1]" &&3777 check_code cc "" "int test[2*($expr) - 1]" &&
3778 subarch=$arch64 || subarch=$arch323778 subarch=$arch64 || subarch=$arch32
3779 enable $subarch3779 enable $subarch
@@ -3788,23 +3788,23 @@ case "$arch" in · 8 unmodified lines
3788 enabled shared && enable_weak pic3788 enabled shared && enable_weak pic
3789 ;;3789 ;;
3790 parisc)3790 parisc)
3791 check_64bit parisc parisc64 'sizeof(void *) > 4'3791 check_64bit parisc parisc64
3792 enabled shared && enable_weak pic3792 enabled shared && enable_weak pic
3793 ;;3793 ;;
3794 ppc)3794 ppc)
3795 check_64bit ppc ppc64 'sizeof(void *) > 4'3795 check_64bit ppc ppc64
3796 enabled shared && enable_weak pic3796 enabled shared && enable_weak pic
3797 ;;3797 ;;
3798 s390)3798 s390)
3799 check_64bit s390 s390x 'sizeof(void *) > 4'3799 check_64bit s390 s390x
3800 enabled shared && enable_weak pic3800 enabled shared && enable_weak pic
3801 ;;3801 ;;
3802 sparc)3802 sparc)
3803 check_64bit sparc sparc64 'sizeof(void *) > 4'3803 check_64bit sparc sparc64
3804 enabled shared && enable_weak pic3804 enabled shared && enable_weak pic
3805 ;;3805 ;;
3806 x86)3806 x86)
3807 check_64bit x86_32 x86_64 'sizeof(void *) > 4'3807 check_64bit x86_32 x86_64
3808 if enabled x86_64; then3808 if enabled x86_64; then
3809 enabled shared && enable_weak pic3809 enabled shared && enable_weak pic
3810 objformat=elf643810 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