2004-08-11 Paul Eggert <eggert@cs.ucla.edu>

* config.guess (*:Darwin:*:*): If uname -p reports "unknown",
	assume the processor is a powerpc.  This is because coreutils
	uname (at least versions 4.5.7 through 5.2.1) outputs "unknown"
	in this case, due to a MacOS X bug that causes
	sysctl ((int[]) {CTL_HW, HW_MACHINE_ARCH}, 2, buffer, &bufsize, 0, 0)
	to return a negative number.
	Problem reported by Petter Reinholdtsen in:
	http://lists.gnu.org/archive/html/bug-gnu-utils/2003-02/msg00201.html
This commit is contained in:
Ben Elliston 2004-08-11 01:26:11 +00:00
parent 53a181ce7a
commit 66e196c3a7
2 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,14 @@
2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
* config.guess (*:Darwin:*:*): If uname -p reports "unknown",
assume the processor is a powerpc. This is because coreutils
uname (at least versions 4.5.7 through 5.2.1) outputs "unknown"
in this case, due to a MacOS X bug that causes
sysctl ((int[]) {CTL_HW, HW_MACHINE_ARCH}, 2, buffer, &bufsize, 0, 0)
to return a negative number.
Problem reported by Petter Reinholdtsen in:
http://lists.gnu.org/archive/html/bug-gnu-utils/2003-02/msg00201.html
2004-07-19 Ben Elliston <bje@gnu.org>
* config.guess (S7501:*:4.0:3.0): Handle NCR System V UNIX machine.

7
config.guess vendored
View File

@ -3,7 +3,7 @@
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
timestamp='2004-07-19'
timestamp='2004-08-11'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@ -1179,9 +1179,10 @@ EOF
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
exit 0 ;;
*:Darwin:*:*)
case `uname -p` in
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
case $UNAME_PROCESSOR in
*86) UNAME_PROCESSOR=i686 ;;
powerpc) UNAME_PROCESSOR=powerpc ;;
unknown) UNAME_PROCESSOR=powerpc ;;
esac
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
exit 0 ;;