configure.sh: Tweak default of use_x86inc for 64-bit, non-pic, and Darwin.

Mainly a readability fix.

Change-Id: Idfd4de9f25d9b9f9931d8e885d9d031473d5df6d
This commit is contained in:
Tom Finegan 2014-06-25 18:06:17 -07:00
parent ce7199075e
commit 08d75a8ec9

View File

@ -1222,10 +1222,12 @@ EOF
fi fi
fi fi
# default use_x86inc to yes if pic is no or 64bit or we are not on darwin tgt_os_no_version=$(echo "${tgt_os}" | tr -d "[0-9]")
if [ ${tgt_isa} = x86_64 -o ! "$pic" = "yes" -o \ # Default use_x86inc to yes when we are 64 bit, non-pic, or on any
"${tgt_os#darwin}" = "${tgt_os}" ]; then # non-Darwin target.
soft_enable use_x86inc if [ "${tgt_isa}" = "x86_64" ] || [ "${pic}" != "yes" ] || \
[ "${tgt_os_no_version}" != "darwin" ]; then
soft_enable use_x86inc
fi fi
# Position Independent Code (PIC) support, for building relocatable # Position Independent Code (PIC) support, for building relocatable