--- config.guess.bak 2009-04-01 12:07:34.000000000 +0200 +++ config.guess 2009-04-01 12:11:37.000000000 +0200 @@ -274,7 +274,8 @@ # a function descriptor, not actual code. But this doesn't matter since # AIX doesn't allow mfpvr anyway. # - cat >$dummy.c <<\EOF + if test "`uname`" != Darwin; then + cat >$dummy.c <<\EOF #include struct { int n; /* force 4-byte alignment */ @@ -312,15 +313,16 @@ return 0; } EOF - if ($CC_FOR_BUILD $dummy.c -o $dummy) >/dev/null 2>&1; then - # This style construct is needed on AIX 4.3 to suppress the SIGILL error - # from (*fun)(). Using $SHELL -c ./$dummy 2>/dev/null doesn't work. - { x=`./$dummy`; } 2>/dev/null - if test -n "$x"; then - exact_cpu=$x + if ($CC_FOR_BUILD $dummy.c -o $dummy) >/dev/null 2>&1; then + # This style construct is needed on AIX 4.3 to suppress the SIGILL error + # from (*fun)(). Using $SHELL -c ./$dummy 2>/dev/null doesn't work. + { x=`./$dummy`; } 2>/dev/null + if test -n "$x"; then + exact_cpu=$x + fi fi + rm -f $dummy.c $dummy.o $dummy $dummy.core fi - rm -f $dummy.c $dummy.o $dummy $dummy.core # Grep the linux kernel /proc/cpuinfo pseudo-file. # Anything unrecognised is ignored, since of course we mustn't spit out