Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)

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

 



On Thu, Dec 13, 2001 at 12:01:34PM -0500, Bradley D. LaRonde wrote:
> For autoconf?  Why need to ask the kernel?  Aren't there other very simple
> ways of determining build endianness in userspace?
> 

Ah - Here is the responsible autoconf bit from config.guess:

   mips:Linux:*:*)
       case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
         big)    echo mips-unknown-linux-gnu && exit 0 ;;
         little) echo mipsel-unknown-linux-gnu && exit 0 ;;
       esac

This has already been discussed and probably even fixed in autoconf
upstream ...

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium

PGP signature


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux