This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author grobian
Recipients grobian
Date 2010-01-16.16:25:09
SpamBayes Score 1.3447327e-10
Marked as misclassified No
Message-id <1263659111.9.0.539414753247.issue7714@psf.upfronthosting.co.za>
In-reply-to
Content
configure.in contains a check for the compiler in use for Darwin like this:

gcc_version=`gcc -v 2>&1 |  grep version | cut -d\  -f3`

This yields in a wrong answer if the output of gcc -v has "version" in another place as well, such as when --enable-version-specific-runtime-libs is enabled.  A better way to retrieve the compiler version is to use GCC's -dumpversion argument, which works with Apple's GCC 3.3, 4.0.1 and 4.2.1 and doesn't need additional grepping/cutting, etc.

The attached patch uses -dumpversion to retrieve the GCC version, which allows a successful configure run.
History
Date User Action Args
2010-01-16 16:25:12grobiansetrecipients: + grobian
2010-01-16 16:25:11grobiansetmessageid: <1263659111.9.0.539414753247.issue7714@psf.upfronthosting.co.za>
2010-01-16 16:25:10grobianlinkissue7714 messages
2010-01-16 16:25:10grobiancreate