New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21341: gcc44-config.guess.diff

File gcc44-config.guess.diff, 1.1 KB (added by howarth@…, 3 years ago)

update to corrected patch which Mike Stump approves for submission to config-patches

  • config.guess

    old new  
    12591259    *:Darwin:*:*) 
    12601260        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 
    12611261        case $UNAME_PROCESSOR in 
     1262            i386) 
     1263                eval $set_cc_for_build 
     1264                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 
     1265                  # if system compiler available test by code generation 
     1266                  sed 's/^                //' << EOF >$dummy.c 
     1267                  #if defined(__LP64__) 
     1268                  main() 
     1269                  { 
     1270                  } 
     1271                  #endif 
     1272EOF 
     1273                  if test `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep -c main` = 1 ; then 
     1274                      UNAME_PROCESSOR=x86_64 
     1275                  fi 
     1276                else 
     1277                     # architecture test in absence of compiler 
     1278                     case `uname -r` in 
     1279                        [1-9].*) ;; 
     1280                        *)  
     1281                          # if darwin10 or later test if EMT64 capable 
     1282                          if test `sysctl -n hw.cpu64bit_capable | grep -c 1` = 1 ; then 
     1283                              UNAME_PROCESSOR=x86_64 
     1284                          fi ;; 
     1285                     esac 
     1286                fi ;; 
    12621287            unknown) UNAME_PROCESSOR=powerpc ;; 
    12631288        esac 
    12641289        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}