configure.build_arch

Jack Howarth howarth at bromo.med.uc.edu
Wed Sep 16 09:10:03 PDT 2009


On Wed, Sep 16, 2009 at 08:38:50AM -0700, Toby Peterson wrote:
> 
> If you prefer how fink does things, go use fink.
> 

I am just trying to involve the folks here in the
eventual changes implemented upstream so they everyone
has some feedback into this. It can only be helpful
if the autoconf folks fully understand all of the
details of darwin10's behavior as they consider what
changes to make. I would note that Bob Friesenhahn
mentioned that Solaris supports 32-bit and 64-bit
kernels. The config.guess section for that does
almost exactly what I am proposing for handling
darwin10...

    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
	eval $set_cc_for_build
	SUN_ARCH="i386"
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH="x86_64"
	    fi
	fi
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;

So it's not likely am coming out of left field with this
change to config.guess. The config.guess maintainer thought
it a completely rational approach.
                       Jack


More information about the macports-dev mailing list