[PATCH] PR41180 pt2: fix config.guess on darwin10
Ralf Wildenhues
Ralf.Wildenhues@gmx.de
Tue Sep 1 05:41:00 GMT 2009
Hello Jack,
* Jack Howarth wrote on Tue, Sep 01, 2009 at 12:55:42AM CEST:
> --- config.guess (revision 151230)
> +++ config.guess (working copy)
> @@ -1246,6 +1246,15 @@
> exit ;;
> *:Darwin:*:*)
> UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
> + eval $set_cc_for_build
> + sed 's/^ //' << EOF >$dummy.c
> + main()
> + {
> + }
> +EOF
> + if test "`$CC_FOR_BUILD -o $dummy $dummy.c; file $dummy | grep -c x86_64`" = 1 ; then
> + UNAME_PROCESSOR=x86_64
> + fi
Can't you grep some preprocessor symbol instead of introducing another
tool into config.guess with 'file'? There are a few similar examples
in the script already.
Thanks,
Ralf
More information about the Gcc-patches
mailing list