autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_C_BIGENDIAN answers "universal" on powerpc-aix


From: Peter O'Gorman
Subject: Re: AC_C_BIGENDIAN answers "universal" on powerpc-aix
Date: Thu, 14 Aug 2008 10:12:35 -0500
User-agent: Mutt/1.5.17 (2007-11-01)

On Thu, Aug 14, 2008 at 09:39:32AM -0500, Peter O'Gorman wrote:
> On Wed, Aug 13, 2008 at 08:19:03PM -0600, Eric Blake wrote:
> > According to Peter O'Gorman on 8/13/2008 12:13 PM:
> > | Hi,
> > |
> > | "checking whether byte ordering is bigendian... universal" is not the
> > | correct answer on powerpc-ibm-aix. The question is not really correct
> > | either (yes/no question, answer is neither yes nor no), but that is
> > | beside the point.
> > |
> > | As far as I know, it is only possible to built differently endian output
> > | on Mac OS X with Apple's gcc. Would a patch to limit the check for
> > | universal to when __APPLE_CC__ is defined be accepted?
> >
> > The brokenness of AC_C_BIGENDIAN has been known for some time now, still
> > without a patch.  At this point, any approach is better than none, so it
> > might be worth posting your ideas.
> >
> 
> Ok. This should still "work" for universal builds.
> 
> [Only lightly tested though.]
> +# else
> +  /* This is not really correct, but there is little that we can do about
> +   * it, #undef WORDS_BIGENDIAN would have some value substituted by
> +   * config.status, not necessarily the correct one. */
> +#  define WORDS_BIGENDIAN 0
> +# endif

I'm a dummy.

Peter

Attachment: 0001-Limit-AC_C_BIGENDIAN-univeral-checks-to-Mac-OS-X.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]