# HG changeset patch # User reimar # Date 1256595319 0 # Node ID 3687c6de309ffe89a370145e4a6884f790bf77fb # Parent 2fecfba6f36a240b79d5c74241c2d1cd3cb3f460 Move 64 bit check below compiler detection since it needs the compiler and obviously should use the one that will be used for compiling in the end. diff -r 2fecfba6f36a -r 3687c6de309f configure --- a/configure Sat Oct 24 13:19:20 2009 +0000 +++ b/configure Mon Oct 26 22:15:19 2009 +0000 @@ -1520,19 +1520,6 @@ echo >> "$TMPLOG" -if test -z "$_target" && x86 ; then - cat > $TMPC << EOF -int main(void) { - int test[sizeof(char *)-7]; - return 0; -} -EOF - cc_check && host_arch=x86_64 || host_arch=i386 -fi - -echo "Detected operating system: $system_name" -echo "Detected host architecture: $host_arch" - if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then die "Runtime CPU detection only works for x86, x86-64 and PPC!" fi @@ -1587,6 +1574,19 @@ fi # icc test "$cc_fail" = yes && die "unsupported compiler version" +if test -z "$_target" && x86 ; then + cat > $TMPC << EOF +int main(void) { + int test[sizeof(char *)-7]; + return 0; +} +EOF + cc_check && host_arch=x86_64 || host_arch=i386 +fi + +echo "Detected operating system: $system_name" +echo "Detected host architecture: $host_arch" + echocheck "host cc" test "$_host_cc" || _host_cc=$_cc echores $_host_cc