Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
319cbe2e
Commit
319cbe2e
authored
Jan 04, 2011
by
Quanah Gibson-Mount
Browse files
ITS#6547
parent
265c7286
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
319cbe2e
...
...
@@ -84,6 +84,7 @@ OpenLDAP 2.4.24 Engineering
Fixed contrib/nssov multi platform support (ITS#6604)
Build Environment
Added support for [unsigned] long long (ITS#6622)
Fixed config.guess/sub to pick up newer OSes (ITS#6547)
Fixed libldap mutex code - cleanup (ITS#6672)
Fixed libldap unnecessary ifdef's (ITS#6603)
Fixed slapd-tester EOF handling (ITS#6723)
...
...
build/config.guess
View file @
319cbe2e
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
# Free Software Foundation, Inc.
timestamp
=
'20
03-07-02
-OpenLDAP'
timestamp
=
'20
10-09-24
-OpenLDAP'
# $OpenLDAP$
# This file is free software; you can redistribute it and/or modify it
...
...
@@ -18,38 +19,25 @@ timestamp='2003-07-02-OpenLDAP'
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is distributed with OpenLDAP Software, which contains a
# configuration script generated by Autoconf, and is distributable
# under the same distributions terms as OpenLDAP itself.
## Portions Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License.
##
## A copy of this license is available in the file LICENSE in the
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
# Originally written by Per Bothner <per@bothner.com>.
# Please send patches to <config-patches@gnu.org>. Submit a context
# diff and a properly formatted ChangeLog entry.
# Originally written by Per Bothner. Please send patches (context
# diff format) to <config-patches@gnu.org> and include a ChangeLog
# entry.
#
# This script attempts to guess a canonical system name similar to
# config.sub. If it succeeds, it prints the system name on stdout, and
# exits with 0. Otherwise, it exits with 1.
#
#
The plan is that this can be called by configure scripts if you
#
don't specify an explicit build system type.
#
You can get the latest version of this script from:
#
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
me
=
`
echo
"
$0
"
|
sed
-e
's,.*/,,'
`
...
...
@@ -69,8 +57,9 @@ version="\
GNU config.guess (
$timestamp
)
Originally written by Per Bothner.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
...
...
@@ -82,11 +71,11 @@ Try \`$me --help' for more information."
while
test
$#
-gt
0
;
do
case
$1
in
--time-stamp
|
--time
*
|
-t
)
echo
"
$timestamp
"
;
exit
0
;;
echo
"
$timestamp
"
;
exit
;;
--version
|
-v
)
echo
"
$version
"
;
exit
0
;;
echo
"
$version
"
;
exit
;;
--help
|
--h
*
|
-h
)
echo
"
$usage
"
;
exit
0
;;
echo
"
$usage
"
;
exit
;;
--
)
# Stop option processing
shift
;
break
;;
-
)
# Use stdin as input.
...
...
@@ -104,7 +93,7 @@ if test $# != 0; then
exit
1
fi
trap
'exit 1'
1 2 15
trap
'exit 1'
HUP INT TERM
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
...
...
@@ -118,9 +107,9 @@ trap 'exit 1' 1 2 15
set_cc_for_build
=
'
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1"
1 2 13 15
;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1"
HUP INT PIPE TERM
;
: ${TMPDIR=/tmp} ;
{ tmp=`(umask 077 && mktemp -d
-q
"$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
...
...
@@ -139,7 +128,7 @@ case $CC_FOR_BUILD,$HOST_CC,$CC in
;;
,,*) CC_FOR_BUILD=$CC ;;
,*,*) CC_FOR_BUILD=$HOST_CC ;;
esac ;'
esac
; set_cc_for_build=
;'
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@noc.rutgers.edu 1994-08-24)
...
...
@@ -174,6 +163,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
arm
*
)
machine
=
arm-unknown
;;
sh3el
)
machine
=
shl-unknown
;;
sh3eb
)
machine
=
sh-unknown
;;
sh5el
)
machine
=
sh5le-unknown
;;
*
)
machine
=
${
UNAME_MACHINE_ARCH
}
-unknown
;;
esac
# The Operating System including object format, if it has switched
...
...
@@ -182,7 +172,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
arm
*
|
i386|m68k|ns32k|sh3
*
|
sparc|vax
)
eval
$set_cc_for_build
if
echo
__ELF__ |
$CC_FOR_BUILD
-E
- 2>/dev/null
\
|
grep
__ELF__
>
/dev/null
|
grep
-q
__ELF__
then
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
# Return netbsd for either. FIX?
...
...
@@ -212,50 +202,32 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# contains redundant information, the shorter form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
echo
"
${
machine
}
-
${
os
}${
release
}
"
exit
0
;;
amiga:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
arc:OpenBSD:
*
:
*
)
echo
mipsel-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
hp300:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mac68k:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
macppc:OpenBSD:
*
:
*
)
echo
powerpc-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mvme68k:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mvme88k:OpenBSD:
*
:
*
)
echo
m88k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mvmeppc:OpenBSD:
*
:
*
)
echo
powerpc-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
pmax:OpenBSD:
*
:
*
)
echo
mipsel-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
sgi:OpenBSD:
*
:
*
)
echo
mipseb-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
sun3:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
wgrisc:OpenBSD:
*
:
*
)
echo
mipsel-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
*
:OpenBSD:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
UNAME_MACHINE_ARCH
=
`
arch
|
sed
's/OpenBSD.//'
`
echo
${
UNAME_MACHINE_ARCH
}
-unknown-openbsd
${
UNAME_RELEASE
}
exit
;;
*
:ekkoBSD:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-ekkobsd
${
UNAME_RELEASE
}
exit
;;
*
:SolidBSD:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-solidbsd
${
UNAME_RELEASE
}
exit
;;
macppc:MirBSD:
*
:
*
)
echo
powerpc-unknown-mirbsd
${
UNAME_RELEASE
}
exit
;;
*
:MirBSD:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-mirbsd
${
UNAME_RELEASE
}
exit
;;
alpha:OSF1:
*
:
*
)
if
test
$UNAME_RELEASE
=
"V4.0"
;
then
case
$UNAME_RELEASE
in
*
4.0
)
UNAME_RELEASE
=
`
/usr/sbin/sizer
-v
|
awk
'{print $3}'
`
fi
;;
*
5.
*
)
UNAME_RELEASE
=
`
/usr/sbin/sizer
-v
|
awk
'{print $4}'
`
;;
esac
# According to Compaq, /usr/sbin/psrinfo has been available on
# OSF/1 and Tru64 systems produced since 1995. I hope that
# covers most systems running today. This code pipes the CPU
...
...
@@ -293,42 +265,49 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
"EV7.9 (21364A)"
)
UNAME_MACHINE
=
"alphaev79"
;;
esac
# A Pn.n version is a patched version.
# A Vn.n version is a released version.
# A Tn.n version is a released field test version.
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
echo
${
UNAME_MACHINE
}
-dec-osf
`
echo
${
UNAME_RELEASE
}
|
sed
-e
's/^[VTX]//'
|
tr
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
'abcdefghijklmnopqrstuvwxyz'
`
exit
0
;;
Alpha
*
:OpenVMS:
*
:
*
)
echo
alpha-hp-vms
exit
0
;;
echo
${
UNAME_MACHINE
}
-dec-osf
`
echo
${
UNAME_RELEASE
}
|
sed
-e
's/^[PVTX]//'
|
tr
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
'abcdefghijklmnopqrstuvwxyz'
`
exit
;;
Alpha
\
*
:Windows_NT
*
:
*
)
# How do we know it's Interix rather than the generic POSIX subsystem?
# Should we change UNAME_MACHINE based on the output of uname instead
# of the specific Alpha model?
echo
alpha-pc-interix
exit
0
;;
exit
;;
21064:Windows_NT:50:3
)
echo
alpha-dec-winnt3.5
exit
0
;;
exit
;;
Amiga
*
:UNIX_System_V:4.0:
*
)
echo
m68k-unknown-sysv4
exit
0
;;
exit
;;
*
:[Aa]miga[Oo][Ss]:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-amigaos
exit
0
;;
exit
;;
*
:[Mm]orph[Oo][Ss]:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-morphos
exit
0
;;
exit
;;
*
:OS/390:
*
:
*
)
echo
i370-ibm-openedition
exit
0
;;
exit
;;
*
:z/VM:
*
:
*
)
echo
s390-ibm-zvmoe
exit
;;
*
:OS400:
*
:
*
)
echo
powerpc-ibm-os400
exit
;;
arm:RISC
*
:1.[012]
*
:
*
|
arm:riscix:1.[012]
*
:
*
)
echo
arm-acorn-riscix
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
arm:riscos:
*
:
*
|
arm:RISCOS:
*
:
*
)
echo
arm-unknown-riscos
exit
;;
SR2?01:HI-UX/MPP:
*
:
*
|
SR8000:HI-UX/MPP:
*
:
*
)
echo
hppa1.1-hitachi-hiuxmpp
exit
0
;;
exit
;;
Pyramid
*
:OSx
*
:
*
:
*
|
MIS
*
:OSx
*
:
*
:
*
|
MIS
*
:SMP_DC-OSx
*
:
*
:
*
)
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
if
test
"
`
(
/bin/universe
)
2>/dev/null
`
"
=
att
;
then
...
...
@@ -336,32 +315,51 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
else
echo
pyramid-pyramid-bsd
fi
exit
0
;;
exit
;;
NILE
*
:
*
:
*
:dcosx
)
echo
pyramid-pyramid-svr4
exit
0
;;
exit
;;
DRS?6000:unix:4.0:6
*
)
echo
sparc-icl-nx6
exit
0
;;
DRS?6000:UNIX_SV:4.2
*
:7
*
)
exit
;;
DRS?6000:UNIX_SV:4.2
*
:7
*
|
DRS?6000:isis:4.2
*
:7
*
)
case
`
/usr/bin/uname
-p
`
in
sparc
)
echo
sparc-icl-nx7
&&
exit
0
;;
sparc
)
echo
sparc-icl-nx7
;
exit
;;
esac
;;
s390x:SunOS:
*
:
*
)
echo
${
UNAME_MACHINE
}
-ibm-solaris2
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[^.]*//'
`
exit
;;
sun4H:SunOS:5.
*
:
*
)
echo
sparc-hal-solaris2
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[^.]*//'
`
exit
0
;;
exit
;;
sun4
*
:SunOS:5.
*
:
*
|
tadpole
*
:SunOS:5.
*
:
*
)
echo
sparc-sun-solaris2
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[^.]*//'
`
exit
0
;;
i86pc:SunOS:5.
*
:
*
)
echo
i386-pc-solaris2
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[^.]*//'
`
exit
0
;;
exit
;;
i86pc:AuroraUX:5.
*
:
*
|
i86xen:AuroraUX:5.
*
:
*
)
echo
i386-pc-auroraux
${
UNAME_RELEASE
}
exit
;;
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
;;
sun4
*
:SunOS:6
*
:
*
)
# According to config.sub, this is the proper way to canonicalize
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
# it's likely to be more like Solaris than SunOS4.
echo
sparc-sun-solaris3
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[^.]*//'
`
exit
0
;;
exit
;;
sun4
*
:SunOS:
*
:
*
)
case
"
`
/usr/bin/arch
-k
`
"
in
Series
*
|
S4
*
)
...
...
@@ -370,10 +368,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
esac
# Japanese Language versions have a version number like `4.1.3-JL'.
echo
sparc-sun-sunos
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/-/_/'
`
exit
0
;;
exit
;;
sun3
*
:SunOS:
*
:
*
)
echo
m68k-sun-sunos
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
sun
*
:
*
:4.2BSD:
*
)
UNAME_RELEASE
=
`
(
sed
1q /etc/motd |
awk
'{print substr($5,1,3)}'
)
2>/dev/null
`
test
"x
${
UNAME_RELEASE
}
"
=
"x"
&&
UNAME_RELEASE
=
3
...
...
@@ -385,10 +383,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
echo
sparc-sun-sunos
${
UNAME_RELEASE
}
;;
esac
exit
0
;;
exit
;;
aushp:SunOS:
*
:
*
)
echo
sparc-auspex-sunos
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
# The situation for MiNT is a little confusing. The machine name
# can be virtually everything (everything which is not
# "atarist" or "atariste" at least should have a processor
...
...
@@ -399,37 +397,40 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# be no problem.
atarist[e]:
*
MiNT:
*
:
*
|
atarist[e]:
*
mint:
*
:
*
|
atarist[e]:
*
TOS:
*
:
*
)
echo
m68k-atari-mint
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
atari
*
:
*
MiNT:
*
:
*
|
atari
*
:
*
mint:
*
:
*
|
atarist[e]:
*
TOS:
*
:
*
)
echo
m68k-atari-mint
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
*
falcon
*
:
*
MiNT:
*
:
*
|
*
falcon
*
:
*
mint:
*
:
*
|
*
falcon
*
:
*
TOS:
*
:
*
)
echo
m68k-atari-mint
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
milan
*
:
*
MiNT:
*
:
*
|
milan
*
:
*
mint:
*
:
*
|
*
milan
*
:
*
TOS:
*
:
*
)
echo
m68k-milan-mint
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
hades
*
:
*
MiNT:
*
:
*
|
hades
*
:
*
mint:
*
:
*
|
*
hades
*
:
*
TOS:
*
:
*
)
echo
m68k-hades-mint
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
*
:
*
MiNT:
*
:
*
|
*
:
*
mint:
*
:
*
|
*
:
*
TOS:
*
:
*
)
echo
m68k-unknown-mint
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
m68k:machten:
*
:
*
)
echo
m68k-apple-machten
${
UNAME_RELEASE
}
exit
;;
powerpc:machten:
*
:
*
)
echo
powerpc-apple-machten
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
RISC
*
:Mach:
*
:
*
)
echo
mips-dec-mach_bsd4.3
exit
0
;;
exit
;;
RISC
*
:ULTRIX:
*
:
*
)
echo
mips-dec-ultrix
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
VAX
*
:ULTRIX
*
:
*
:
*
)
echo
vax-dec-ultrix
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
2020:CLIX:
*
:
*
|
2430:CLIX:
*
:
*
)
echo
clipper-intergraph-clix
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
mips:
*
:
*
:UMIPS
|
mips:
*
:
*
:RISCos
)
eval
$set_cc_for_build
sed
's/^ //'
<<
EOF
>
$dummy
.c
...
...
@@ -453,32 +454,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
exit (-1);
}
EOF
$CC_FOR_BUILD
-o
$dummy
$dummy
.c
\
&&
$dummy
`
echo
"
${
UNAME_RELEASE
}
"
|
sed
-n
's/\([0-9]*\).*/\1/p'
`
\
&&
exit
0
$CC_FOR_BUILD
-o
$dummy
$dummy
.c
&&
dummyarg
=
`
echo
"
${
UNAME_RELEASE
}
"
|
sed
-n
's/\([0-9]*\).*/\1/p'
`
&&
SYSTEM_NAME
=
`
$dummy
$dummyarg
`
&&
{
echo
"
$SYSTEM_NAME
"
;
exit
;
}
echo
mips-mips-riscos
${
UNAME_RELEASE
}
exit
0
;;
exit
;;
Motorola:PowerMAX_OS:
*
:
*
)
echo
powerpc-motorola-powermax
exit
0
;;
exit
;;
Motorola:
*
:4.3:PL8-
*
)
echo
powerpc-harris-powermax
exit
0
;;
exit
;;
Night_Hawk:
*
:
*
:PowerMAX_OS
|
Synergy:PowerMAX_OS:
*
:
*
)
echo
powerpc-harris-powermax
exit
0
;;
exit
;;
Night_Hawk:Power_UNIX:
*
:
*
)
echo
powerpc-harris-powerunix
exit
0
;;
exit
;;
m88k:CX/UX:7
*
:
*
)
echo
m88k-harris-cxux7
exit
0
;;
exit
;;
m88k:
*
:4
*
:R4
*
)
echo
m88k-motorola-sysv4
exit
0
;;
exit
;;
m88k:
*
:3
*
:R3
*
)
echo
m88k-motorola-sysv3
exit
0
;;
exit
;;
AViiON:dgux:
*
:
*
)
# DG/UX returns AViiON for all architectures
UNAME_PROCESSOR
=
`
/usr/bin/uname
-p
`
...
...
@@ -494,29 +496,29 @@ EOF
else
echo
i586-dg-dgux
${
UNAME_RELEASE
}
fi
exit
0
;;
exit
;;
M88
*
:DolphinOS:
*
:
*
)
# DolphinOS (SVR3)
echo
m88k-dolphin-sysv3
exit
0
;;
exit
;;
M88
*
:
*
:R3
*
:
*
)
# Delta 88k system running SVR3
echo
m88k-motorola-sysv3
exit
0
;;
exit
;;
XD88
*
:
*
:
*
:
*
)
# Tektronix XD88 system running UTekV (SVR3)
echo
m88k-tektronix-sysv3
exit
0
;;
exit
;;
Tek43[0-9][0-9]:UTek:
*
:
*
)
# Tektronix 4300 system running UTek (BSD)
echo
m68k-tektronix-bsd
exit
0
;;
exit
;;
*
:IRIX
*
:
*
:
*
)
echo
mips-sgi-irix
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/-/_/g'
`
exit
0
;;
exit
;;
????????:AIX?:[12].1:2
)
# AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
echo
romp-ibm-aix
# uname -m gives an 8 hex-code CPU id
exit
0
;;
# Note that: echo "'`uname -s`'" gives 'AIX '
echo
romp-ibm-aix
# uname -m gives an 8 hex-code CPU id
exit
;;
# Note that: echo "'`uname -s`'" gives 'AIX '
i
*
86:AIX:
*
:
*
)
echo
i386-ibm-aix
exit
0
;;
exit
;;
ia64:AIX:
*
:
*
)
if
[
-x
/usr/bin/oslevel
]
;
then
IBM_REV
=
`
/usr/bin/oslevel
`
...
...
@@ -524,7 +526,7 @@ EOF
IBM_REV
=
${
UNAME_VERSION
}
.
${
UNAME_RELEASE
}
fi
echo
${
UNAME_MACHINE
}
-ibm-aix
${
IBM_REV
}
exit
0
;;
exit
;;
*
:AIX:2:3
)
if
grep
bos325 /usr/include/stdio.h
>
/dev/null 2>&1
;
then
eval
$set_cc_for_build
...
...
@@ -539,15 +541,19 @@ EOF
exit(0);
}
EOF
$CC_FOR_BUILD
-o
$dummy
$dummy
.c
&&
$dummy
&&
exit
0
echo
rs6000-ibm-aix3.2.5
if
$CC_FOR_BUILD
-o
$dummy
$dummy
.c
&&
SYSTEM_NAME
=
`
$dummy
`
then
echo
"
$SYSTEM_NAME
"
else
echo
rs6000-ibm-aix3.2.5
fi
elif
grep
bos324 /usr/include/stdio.h
>
/dev/null 2>&1
;
then
echo
rs6000-ibm-aix3.2.4
else
echo
rs6000-ibm-aix3.2
fi
exit
0
;;
*
:AIX:
*
:[45]
)
exit
;;
*
:AIX:
*
:[45
67
]
)
IBM_CPU_ID
=
`
/usr/sbin/lsdev
-C
-c
processor
-S
available |
sed
1q |
awk
'{ print $1 }'
`
if
/usr/sbin/lsattr
-El
${
IBM_CPU_ID
}
|
grep
' POWER'
>
/dev/null 2>&1
;
then
IBM_ARCH
=
rs6000
...
...
@@ -560,28 +566,28 @@ EOF
IBM_REV
=
${
UNAME_VERSION
}
.
${
UNAME_RELEASE
}
fi
echo
${
IBM_ARCH
}
-ibm-aix
${
IBM_REV
}
exit
0
;;
exit
;;
*
:AIX:
*
:
*
)
echo
rs6000-ibm-aix
exit
0
;;
exit
;;
ibmrt:4.4BSD:
*
|
romp-ibm:BSD:
*
)
echo
romp-ibm-bsd4.4
exit
0
;;
exit
;;
ibmrt:
*
BSD:
*
|
romp-ibm:BSD:
*
)
# covers RT/PC BSD and
echo
romp-ibm-bsd
${
UNAME_RELEASE
}
# 4.3 with uname added to
exit
0
;;
# report: romp-ibm BSD 4.3
exit
;;
# report: romp-ibm BSD 4.3
*
:BOSX:
*
:
*
)
echo
rs6000-bull-bosx
exit
0
;;
exit
;;
DPX/2?00:B.O.S.:
*
:
*
)
echo
m68k-bull-sysv3
exit
0
;;
exit
;;
9000/[34]??:4.3bsd:1.
*
:
*
)
echo
m68k-hp-bsd
exit
0
;;
exit
;;
hp300:4.4BSD:
*
:
*
|
9000/[34]??:4.3bsd:2.
*
:
*
)
echo
m68k-hp-bsd4.4
exit
0
;;
exit
;;
9000/[34678]??:HP-UX:
*
:
*
)
HPUX_REV
=
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[^.]*.[0B]*//'
`
case
"
${
UNAME_MACHINE
}
"
in
...
...
@@ -643,9 +649,19 @@ EOF
esac
if
[
${
HP_ARCH
}
=
"hppa2.0w"
]
then
# avoid double evaluation of $set_cc_for_build
test
-n
"
$CC_FOR_BUILD
"
||
eval
$set_cc_for_build
if
echo
__LP64__ |
(
CCOPTS
=
$CC_FOR_BUILD
-E
-
)
|
grep
__LP64__
>
/dev/null
eval
$set_cc_for_build
# hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
# 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
# generating 64-bit code. GNU and HP use different nomenclature:
#
# $ CC_FOR_BUILD=cc ./config.guess
# => hppa2.0w-hp-hpux11.23
# $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
# => hppa64-hp-hpux11.23
if
echo
__LP64__ |
(
CCOPTS
=
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
grep
-q
__LP64__
then
HP_ARCH
=
"hppa2.0w"
else
...
...
@@ -653,11 +669,11 @@ EOF
fi
fi
echo
${
HP_ARCH
}
-hp-hpux
${
HPUX_REV
}
exit
0
;;
exit
;;
ia64:HP-UX:
*
:
*
)
HPUX_REV
=
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[^.]*.[0B]*//'
`
echo
ia64-hp-hpux
${
HPUX_REV
}
exit
0
;;
exit
;;
3050
*
:HI-UX:
*
:
*
)
eval
$set_cc_for_build
sed
's/^ //'
<<
EOF
>
$dummy
.c
...
...
@@ -685,211 +701,248 @@ EOF
exit (0);
}
EOF
$CC_FOR_BUILD
-o
$dummy
$dummy
.c
&&
$dummy
&&
exit
0
$CC_FOR_BUILD
-o
$dummy
$dummy
.c
&&
SYSTEM_NAME
=
`
$dummy
`
&&
{
echo
"
$SYSTEM_NAME
"
;
exit
;
}
echo
unknown-hitachi-hiuxwe2
exit
0
;;
exit
;;
9000/7??:4.3bsd:
*
:
*
|
9000/8?[79]:4.3bsd:
*
:
*
)
echo
hppa1.1-hp-bsd
exit
0
;;
exit
;;
9000/8??:4.3bsd:
*
:
*
)
echo
hppa1.0-hp-bsd
exit
0
;;
exit
;;
*
9??
*
:MPE/iX:
*
:
*
|
*
3000
*
:MPE/iX:
*
:
*
)
echo
hppa1.0-hp-mpeix
exit
0
;;
exit
;;
hp7??:OSF1:
*
:
*
|
hp8?[79]:OSF1:
*
:
*
)
echo
hppa1.1-hp-osf
exit
0
;;
exit
;;
hp8??:OSF1:
*
:
*
)
echo
hppa1.0-hp-osf
exit
0
;;
exit
;;
i
*
86:OSF1:
*
:
*
)
if
[
-x
/usr/sbin/sysversion
]
;
then
echo
${
UNAME_MACHINE
}
-unknown-osf1mk
else
echo
${
UNAME_MACHINE
}
-unknown-osf1
fi
exit
0
;;
exit
;;
parisc
*
:Lites
*
:
*
:
*
)
echo
hppa1.1-hp-lites