config.guess 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463
  1. #! /bin/sh
  2. # Attempt to guess a canonical system name.
  3. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  4. # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
  5. timestamp='2005-07-08'
  6. # This file is free software; you can redistribute it and/or modify it
  7. # under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. # General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  19. # 02110-1301, USA.
  20. #
  21. # As a special exception to the GNU General Public License, if you
  22. # distribute this file as part of a program that contains a
  23. # configuration script generated by Autoconf, you may include it under
  24. # the same distribution terms that you use for the rest of that program.
  25. # Originally written by Per Bothner <per@bothner.com>.
  26. # Please send patches to <config-patches@gnu.org>. Submit a context
  27. # diff and a properly formatted ChangeLog entry.
  28. #
  29. # This script attempts to guess a canonical system name similar to
  30. # config.sub. If it succeeds, it prints the system name on stdout, and
  31. # exits with 0. Otherwise, it exits with 1.
  32. #
  33. # The plan is that this can be called by configure scripts if you
  34. # don't specify an explicit build system type.
  35. me=`echo "$0" | sed -e 's,.*/,,'`
  36. usage="\
  37. Usage: $0 [OPTION]
  38. Output the configuration name of the system \`$me' is run on.
  39. Operation modes:
  40. -h, --help print this help, then exit
  41. -t, --time-stamp print date of last modification, then exit
  42. -v, --version print version number, then exit
  43. Report bugs and patches to <config-patches@gnu.org>."
  44. version="\
  45. GNU config.guess ($timestamp)
  46. Originally written by Per Bothner.
  47. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  48. Free Software Foundation, Inc.
  49. This is free software; see the source for copying conditions. There is NO
  50. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  51. help="
  52. Try \`$me --help' for more information."
  53. # Parse command line
  54. while test $# -gt 0 ; do
  55. case $1 in
  56. --time-stamp | --time* | -t )
  57. echo "$timestamp" ; exit ;;
  58. --version | -v )
  59. echo "$version" ; exit ;;
  60. --help | --h* | -h )
  61. echo "$usage"; exit ;;
  62. -- ) # Stop option processing
  63. shift; break ;;
  64. - ) # Use stdin as input.
  65. break ;;
  66. -* )
  67. echo "$me: invalid option $1$help" >&2
  68. exit 1 ;;
  69. * )
  70. break ;;
  71. esac
  72. done
  73. if test $# != 0; then
  74. echo "$me: too many arguments$help" >&2
  75. exit 1
  76. fi
  77. trap 'exit 1' 1 2 15
  78. # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  79. # compiler to aid in system detection is discouraged as it requires
  80. # temporary files to be created and, as you can see below, it is a
  81. # headache to deal with in a portable fashion.
  82. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  83. # use `HOST_CC' if defined, but it is deprecated.
  84. # Portable tmp directory creation inspired by the Autoconf team.
  85. set_cc_for_build='
  86. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  87. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  88. : ${TMPDIR=/tmp} ;
  89. { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  90. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  91. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  92. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  93. dummy=$tmp/dummy ;
  94. tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  95. case $CC_FOR_BUILD,$HOST_CC,$CC in
  96. ,,) echo "int x;" > $dummy.c ;
  97. for c in cc gcc c89 c99 ; do
  98. if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  99. CC_FOR_BUILD="$c"; break ;
  100. fi ;
  101. done ;
  102. if test x"$CC_FOR_BUILD" = x ; then
  103. CC_FOR_BUILD=no_compiler_found ;
  104. fi
  105. ;;
  106. ,,*) CC_FOR_BUILD=$CC ;;
  107. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  108. esac ; set_cc_for_build= ;'
  109. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  110. # (ghazi@noc.rutgers.edu 1994-08-24)
  111. if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  112. PATH=$PATH:/.attbin ; export PATH
  113. fi
  114. UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  115. UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  116. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  117. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  118. # Note: order is significant - the case branches are not exclusive.
  119. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  120. *:NetBSD:*:*)
  121. # NetBSD (nbsd) targets should (where applicable) match one or
  122. # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  123. # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  124. # switched to ELF, *-*-netbsd* would select the old
  125. # object file format. This provides both forward
  126. # compatibility and a consistent mechanism for selecting the
  127. # object file format.
  128. #
  129. # Note: NetBSD doesn't particularly care about the vendor
  130. # portion of the name. We always set it to "unknown".
  131. sysctl="sysctl -n hw.machine_arch"
  132. UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  133. /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  134. case "${UNAME_MACHINE_ARCH}" in
  135. armeb) machine=armeb-unknown ;;
  136. arm*) machine=arm-unknown ;;
  137. sh3el) machine=shl-unknown ;;
  138. sh3eb) machine=sh-unknown ;;
  139. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  140. esac
  141. # The Operating System including object format, if it has switched
  142. # to ELF recently, or will in the future.
  143. case "${UNAME_MACHINE_ARCH}" in
  144. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  145. eval $set_cc_for_build
  146. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  147. | grep __ELF__ >/dev/null
  148. then
  149. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  150. # Return netbsd for either. FIX?
  151. os=netbsd
  152. else
  153. os=netbsdelf
  154. fi
  155. ;;
  156. *)
  157. os=netbsd
  158. ;;
  159. esac
  160. # The OS release
  161. # Debian GNU/NetBSD machines have a different userland, and
  162. # thus, need a distinct triplet. However, they do not need
  163. # kernel version information, so it can be replaced with a
  164. # suitable tag, in the style of linux-gnu.
  165. case "${UNAME_VERSION}" in
  166. Debian*)
  167. release='-gnu'
  168. ;;
  169. *)
  170. release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  171. ;;
  172. esac
  173. # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  174. # contains redundant information, the shorter form:
  175. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  176. echo "${machine}-${os}${release}"
  177. exit ;;
  178. *:OpenBSD:*:*)
  179. UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  180. echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  181. exit ;;
  182. *:ekkoBSD:*:*)
  183. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  184. exit ;;
  185. macppc:MirBSD:*:*)
  186. echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  187. exit ;;
  188. *:MirBSD:*:*)
  189. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  190. exit ;;
  191. alpha:OSF1:*:*)
  192. case $UNAME_RELEASE in
  193. *4.0)
  194. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  195. ;;
  196. *5.*)
  197. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  198. ;;
  199. esac
  200. # According to Compaq, /usr/sbin/psrinfo has been available on
  201. # OSF/1 and Tru64 systems produced since 1995. I hope that
  202. # covers most systems running today. This code pipes the CPU
  203. # types through head -n 1, so we only detect the type of CPU 0.
  204. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  205. case "$ALPHA_CPU_TYPE" in
  206. "EV4 (21064)")
  207. UNAME_MACHINE="alpha" ;;
  208. "EV4.5 (21064)")
  209. UNAME_MACHINE="alpha" ;;
  210. "LCA4 (21066/21068)")
  211. UNAME_MACHINE="alpha" ;;
  212. "EV5 (21164)")
  213. UNAME_MACHINE="alphaev5" ;;
  214. "EV5.6 (21164A)")
  215. UNAME_MACHINE="alphaev56" ;;
  216. "EV5.6 (21164PC)")
  217. UNAME_MACHINE="alphapca56" ;;
  218. "EV5.7 (21164PC)")
  219. UNAME_MACHINE="alphapca57" ;;
  220. "EV6 (21264)")
  221. UNAME_MACHINE="alphaev6" ;;
  222. "EV6.7 (21264A)")
  223. UNAME_MACHINE="alphaev67" ;;
  224. "EV6.8CB (21264C)")
  225. UNAME_MACHINE="alphaev68" ;;
  226. "EV6.8AL (21264B)")
  227. UNAME_MACHINE="alphaev68" ;;
  228. "EV6.8CX (21264D)")
  229. UNAME_MACHINE="alphaev68" ;;
  230. "EV6.9A (21264/EV69A)")
  231. UNAME_MACHINE="alphaev69" ;;
  232. "EV7 (21364)")
  233. UNAME_MACHINE="alphaev7" ;;
  234. "EV7.9 (21364A)")
  235. UNAME_MACHINE="alphaev79" ;;
  236. esac
  237. # A Pn.n version is a patched version.
  238. # A Vn.n version is a released version.
  239. # A Tn.n version is a released field test version.
  240. # A Xn.n version is an unreleased experimental baselevel.
  241. # 1.2 uses "1.2" for uname -r.
  242. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  243. exit ;;
  244. Alpha\ *:Windows_NT*:*)
  245. # How do we know it's Interix rather than the generic POSIX subsystem?
  246. # Should we change UNAME_MACHINE based on the output of uname instead
  247. # of the specific Alpha model?
  248. echo alpha-pc-interix
  249. exit ;;
  250. 21064:Windows_NT:50:3)
  251. echo alpha-dec-winnt3.5
  252. exit ;;
  253. Amiga*:UNIX_System_V:4.0:*)
  254. echo m68k-unknown-sysv4
  255. exit ;;
  256. *:[Aa]miga[Oo][Ss]:*:*)
  257. echo ${UNAME_MACHINE}-unknown-amigaos
  258. exit ;;
  259. *:[Mm]orph[Oo][Ss]:*:*)
  260. echo ${UNAME_MACHINE}-unknown-morphos
  261. exit ;;
  262. *:OS/390:*:*)
  263. echo i370-ibm-openedition
  264. exit ;;
  265. *:z/VM:*:*)
  266. echo s390-ibm-zvmoe
  267. exit ;;
  268. *:OS400:*:*)
  269. echo powerpc-ibm-os400
  270. exit ;;
  271. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  272. echo arm-acorn-riscix${UNAME_RELEASE}
  273. exit ;;
  274. arm:riscos:*:*|arm:RISCOS:*:*)
  275. echo arm-unknown-riscos
  276. exit ;;
  277. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  278. echo hppa1.1-hitachi-hiuxmpp
  279. exit ;;
  280. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  281. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  282. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  283. echo pyramid-pyramid-sysv3
  284. else
  285. echo pyramid-pyramid-bsd
  286. fi
  287. exit ;;
  288. NILE*:*:*:dcosx)
  289. echo pyramid-pyramid-svr4
  290. exit ;;
  291. DRS?6000:unix:4.0:6*)
  292. echo sparc-icl-nx6
  293. exit ;;
  294. DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  295. case `/usr/bin/uname -p` in
  296. sparc) echo sparc-icl-nx7; exit ;;
  297. esac ;;
  298. sun4H:SunOS:5.*:*)
  299. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  300. exit ;;
  301. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  302. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  303. exit ;;
  304. i86pc:SunOS:5.*:*)
  305. echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  306. exit ;;
  307. sun4*:SunOS:6*:*)
  308. # According to config.sub, this is the proper way to canonicalize
  309. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  310. # it's likely to be more like Solaris than SunOS4.
  311. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  312. exit ;;
  313. sun4*:SunOS:*:*)
  314. case "`/usr/bin/arch -k`" in
  315. Series*|S4*)
  316. UNAME_RELEASE=`uname -v`
  317. ;;
  318. esac
  319. # Japanese Language versions have a version number like `4.1.3-JL'.
  320. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  321. exit ;;
  322. sun3*:SunOS:*:*)
  323. echo m68k-sun-sunos${UNAME_RELEASE}
  324. exit ;;
  325. sun*:*:4.2BSD:*)
  326. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  327. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  328. case "`/bin/arch`" in
  329. sun3)
  330. echo m68k-sun-sunos${UNAME_RELEASE}
  331. ;;
  332. sun4)
  333. echo sparc-sun-sunos${UNAME_RELEASE}
  334. ;;
  335. esac
  336. exit ;;
  337. aushp:SunOS:*:*)
  338. echo sparc-auspex-sunos${UNAME_RELEASE}
  339. exit ;;
  340. # The situation for MiNT is a little confusing. The machine name
  341. # can be virtually everything (everything which is not
  342. # "atarist" or "atariste" at least should have a processor
  343. # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
  344. # to the lowercase version "mint" (or "freemint"). Finally
  345. # the system name "TOS" denotes a system which is actually not
  346. # MiNT. But MiNT is downward compatible to TOS, so this should
  347. # be no problem.
  348. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  349. echo m68k-atari-mint${UNAME_RELEASE}
  350. exit ;;
  351. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  352. echo m68k-atari-mint${UNAME_RELEASE}
  353. exit ;;
  354. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  355. echo m68k-atari-mint${UNAME_RELEASE}
  356. exit ;;
  357. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  358. echo m68k-milan-mint${UNAME_RELEASE}
  359. exit ;;
  360. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  361. echo m68k-hades-mint${UNAME_RELEASE}
  362. exit ;;
  363. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  364. echo m68k-unknown-mint${UNAME_RELEASE}
  365. exit ;;
  366. m68k:machten:*:*)
  367. echo m68k-apple-machten${UNAME_RELEASE}
  368. exit ;;
  369. powerpc:machten:*:*)
  370. echo powerpc-apple-machten${UNAME_RELEASE}
  371. exit ;;
  372. RISC*:Mach:*:*)
  373. echo mips-dec-mach_bsd4.3
  374. exit ;;
  375. RISC*:ULTRIX:*:*)
  376. echo mips-dec-ultrix${UNAME_RELEASE}
  377. exit ;;
  378. VAX*:ULTRIX*:*:*)
  379. echo vax-dec-ultrix${UNAME_RELEASE}
  380. exit ;;
  381. 2020:CLIX:*:* | 2430:CLIX:*:*)
  382. echo clipper-intergraph-clix${UNAME_RELEASE}
  383. exit ;;
  384. mips:*:*:UMIPS | mips:*:*:RISCos)
  385. eval $set_cc_for_build
  386. sed 's/^ //' << EOF >$dummy.c
  387. #ifdef __cplusplus
  388. #include <stdio.h> /* for printf() prototype */
  389. int main (int argc, char *argv[]) {
  390. #else
  391. int main (argc, argv) int argc; char *argv[]; {
  392. #endif
  393. #if defined (host_mips) && defined (MIPSEB)
  394. #if defined (SYSTYPE_SYSV)
  395. printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  396. #endif
  397. #if defined (SYSTYPE_SVR4)
  398. printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
  399. #endif
  400. #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
  401. printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
  402. #endif
  403. #endif
  404. exit (-1);
  405. }
  406. EOF
  407. $CC_FOR_BUILD -o $dummy $dummy.c &&
  408. dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  409. SYSTEM_NAME=`$dummy $dummyarg` &&
  410. { echo "$SYSTEM_NAME"; exit; }
  411. echo mips-mips-riscos${UNAME_RELEASE}
  412. exit ;;
  413. Motorola:PowerMAX_OS:*:*)
  414. echo powerpc-motorola-powermax
  415. exit ;;
  416. Motorola:*:4.3:PL8-*)
  417. echo powerpc-harris-powermax
  418. exit ;;
  419. Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  420. echo powerpc-harris-powermax
  421. exit ;;
  422. Night_Hawk:Power_UNIX:*:*)
  423. echo powerpc-harris-powerunix
  424. exit ;;
  425. m88k:CX/UX:7*:*)
  426. echo m88k-harris-cxux7
  427. exit ;;
  428. m88k:*:4*:R4*)
  429. echo m88k-motorola-sysv4
  430. exit ;;
  431. m88k:*:3*:R3*)
  432. echo m88k-motorola-sysv3
  433. exit ;;
  434. AViiON:dgux:*:*)
  435. # DG/UX returns AViiON for all architectures
  436. UNAME_PROCESSOR=`/usr/bin/uname -p`
  437. if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  438. then
  439. if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  440. [ ${TARGET_BINARY_INTERFACE}x = x ]
  441. then
  442. echo m88k-dg-dgux${UNAME_RELEASE}
  443. else
  444. echo m88k-dg-dguxbcs${UNAME_RELEASE}
  445. fi
  446. else
  447. echo i586-dg-dgux${UNAME_RELEASE}
  448. fi
  449. exit ;;
  450. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  451. echo m88k-dolphin-sysv3
  452. exit ;;
  453. M88*:*:R3*:*)
  454. # Delta 88k system running SVR3
  455. echo m88k-motorola-sysv3
  456. exit ;;
  457. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  458. echo m88k-tektronix-sysv3
  459. exit ;;
  460. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  461. echo m68k-tektronix-bsd
  462. exit ;;
  463. *:IRIX*:*:*)
  464. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  465. exit ;;
  466. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  467. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  468. exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  469. i*86:AIX:*:*)
  470. echo i386-ibm-aix
  471. exit ;;
  472. ia64:AIX:*:*)
  473. if [ -x /usr/bin/oslevel ] ; then
  474. IBM_REV=`/usr/bin/oslevel`
  475. else
  476. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  477. fi
  478. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  479. exit ;;
  480. *:AIX:2:3)
  481. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  482. eval $set_cc_for_build
  483. sed 's/^ //' << EOF >$dummy.c
  484. #include <sys/systemcfg.h>
  485. main()
  486. {
  487. if (!__power_pc())
  488. exit(1);
  489. puts("powerpc-ibm-aix3.2.5");
  490. exit(0);
  491. }
  492. EOF
  493. if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  494. then
  495. echo "$SYSTEM_NAME"
  496. else
  497. echo rs6000-ibm-aix3.2.5
  498. fi
  499. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  500. echo rs6000-ibm-aix3.2.4
  501. else
  502. echo rs6000-ibm-aix3.2
  503. fi
  504. exit ;;
  505. *:AIX:*:[45])
  506. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  507. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  508. IBM_ARCH=rs6000
  509. else
  510. IBM_ARCH=powerpc
  511. fi
  512. if [ -x /usr/bin/oslevel ] ; then
  513. IBM_REV=`/usr/bin/oslevel`
  514. else
  515. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  516. fi
  517. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  518. exit ;;
  519. *:AIX:*:*)
  520. echo rs6000-ibm-aix
  521. exit ;;
  522. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  523. echo romp-ibm-bsd4.4
  524. exit ;;
  525. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  526. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  527. exit ;; # report: romp-ibm BSD 4.3
  528. *:BOSX:*:*)
  529. echo rs6000-bull-bosx
  530. exit ;;
  531. DPX/2?00:B.O.S.:*:*)
  532. echo m68k-bull-sysv3
  533. exit ;;
  534. 9000/[34]??:4.3bsd:1.*:*)
  535. echo m68k-hp-bsd
  536. exit ;;
  537. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  538. echo m68k-hp-bsd4.4
  539. exit ;;
  540. 9000/[34678]??:HP-UX:*:*)
  541. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  542. case "${UNAME_MACHINE}" in
  543. 9000/31? ) HP_ARCH=m68000 ;;
  544. 9000/[34]?? ) HP_ARCH=m68k ;;
  545. 9000/[678][0-9][0-9])
  546. if [ -x /usr/bin/getconf ]; then
  547. sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  548. sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  549. case "${sc_cpu_version}" in
  550. 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  551. 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  552. 532) # CPU_PA_RISC2_0
  553. case "${sc_kernel_bits}" in
  554. 32) HP_ARCH="hppa2.0n" ;;
  555. 64) HP_ARCH="hppa2.0w" ;;
  556. '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  557. esac ;;
  558. esac
  559. fi
  560. if [ "${HP_ARCH}" = "" ]; then
  561. eval $set_cc_for_build
  562. sed 's/^ //' << EOF >$dummy.c
  563. #define _HPUX_SOURCE
  564. #include <stdlib.h>
  565. #include <unistd.h>
  566. int main ()
  567. {
  568. #if defined(_SC_KERNEL_BITS)
  569. long bits = sysconf(_SC_KERNEL_BITS);
  570. #endif
  571. long cpu = sysconf (_SC_CPU_VERSION);
  572. switch (cpu)
  573. {
  574. case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  575. case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  576. case CPU_PA_RISC2_0:
  577. #if defined(_SC_KERNEL_BITS)
  578. switch (bits)
  579. {
  580. case 64: puts ("hppa2.0w"); break;
  581. case 32: puts ("hppa2.0n"); break;
  582. default: puts ("hppa2.0"); break;
  583. } break;
  584. #else /* !defined(_SC_KERNEL_BITS) */
  585. puts ("hppa2.0"); break;
  586. #endif
  587. default: puts ("hppa1.0"); break;
  588. }
  589. exit (0);
  590. }
  591. EOF
  592. (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  593. test -z "$HP_ARCH" && HP_ARCH=hppa
  594. fi ;;
  595. esac
  596. if [ ${HP_ARCH} = "hppa2.0w" ]
  597. then
  598. eval $set_cc_for_build
  599. # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  600. # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  601. # generating 64-bit code. GNU and HP use different nomenclature:
  602. #
  603. # $ CC_FOR_BUILD=cc ./config.guess
  604. # => hppa2.0w-hp-hpux11.23
  605. # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  606. # => hppa64-hp-hpux11.23
  607. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  608. grep __LP64__ >/dev/null
  609. then
  610. HP_ARCH="hppa2.0w"
  611. else
  612. HP_ARCH="hppa64"
  613. fi
  614. fi
  615. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  616. exit ;;
  617. ia64:HP-UX:*:*)
  618. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  619. echo ia64-hp-hpux${HPUX_REV}
  620. exit ;;
  621. 3050*:HI-UX:*:*)
  622. eval $set_cc_for_build
  623. sed 's/^ //' << EOF >$dummy.c
  624. #include <unistd.h>
  625. int
  626. main ()
  627. {
  628. long cpu = sysconf (_SC_CPU_VERSION);
  629. /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  630. true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
  631. results, however. */
  632. if (CPU_IS_PA_RISC (cpu))
  633. {
  634. switch (cpu)
  635. {
  636. case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  637. case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  638. case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  639. default: puts ("hppa-hitachi-hiuxwe2"); break;
  640. }
  641. }
  642. else if (CPU_IS_HP_MC68K (cpu))
  643. puts ("m68k-hitachi-hiuxwe2");
  644. else puts ("unknown-hitachi-hiuxwe2");
  645. exit (0);
  646. }
  647. EOF
  648. $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  649. { echo "$SYSTEM_NAME"; exit; }
  650. echo unknown-hitachi-hiuxwe2
  651. exit ;;
  652. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  653. echo hppa1.1-hp-bsd
  654. exit ;;
  655. 9000/8??:4.3bsd:*:*)
  656. echo hppa1.0-hp-bsd
  657. exit ;;
  658. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  659. echo hppa1.0-hp-mpeix
  660. exit ;;
  661. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  662. echo hppa1.1-hp-osf
  663. exit ;;
  664. hp8??:OSF1:*:*)
  665. echo hppa1.0-hp-osf
  666. exit ;;
  667. i*86:OSF1:*:*)
  668. if [ -x /usr/sbin/sysversion ] ; then
  669. echo ${UNAME_MACHINE}-unknown-osf1mk
  670. else
  671. echo ${UNAME_MACHINE}-unknown-osf1
  672. fi
  673. exit ;;
  674. parisc*:Lites*:*:*)
  675. echo hppa1.1-hp-lites
  676. exit ;;
  677. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  678. echo c1-convex-bsd
  679. exit ;;
  680. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  681. if getsysinfo -f scalar_acc
  682. then echo c32-convex-bsd
  683. else echo c2-convex-bsd
  684. fi
  685. exit ;;
  686. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  687. echo c34-convex-bsd
  688. exit ;;
  689. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  690. echo c38-convex-bsd
  691. exit ;;
  692. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  693. echo c4-convex-bsd
  694. exit ;;
  695. CRAY*Y-MP:*:*:*)
  696. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  697. exit ;;
  698. CRAY*[A-Z]90:*:*:*)
  699. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  700. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  701. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  702. -e 's/\.[^.]*$/.X/'
  703. exit ;;
  704. CRAY*TS:*:*:*)
  705. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  706. exit ;;
  707. CRAY*T3E:*:*:*)
  708. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  709. exit ;;
  710. CRAY*SV1:*:*:*)
  711. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  712. exit ;;
  713. *:UNICOS/mp:*:*)
  714. echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  715. exit ;;
  716. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  717. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  718. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  719. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  720. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  721. exit ;;
  722. 5000:UNIX_System_V:4.*:*)
  723. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  724. FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  725. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  726. exit ;;
  727. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  728. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  729. exit ;;
  730. sparc*:BSD/OS:*:*)
  731. echo sparc-unknown-bsdi${UNAME_RELEASE}
  732. exit ;;
  733. *:BSD/OS:*:*)
  734. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  735. exit ;;
  736. *:FreeBSD:*:*)
  737. echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  738. exit ;;
  739. i*:CYGWIN*:*)
  740. echo ${UNAME_MACHINE}-pc-cygwin
  741. exit ;;
  742. i*:MINGW*:*)
  743. echo ${UNAME_MACHINE}-pc-mingw32
  744. exit ;;
  745. i*:windows32*:*)
  746. # uname -m includes "-pc" on this system.
  747. echo ${UNAME_MACHINE}-mingw32
  748. exit ;;
  749. i*:PW*:*)
  750. echo ${UNAME_MACHINE}-pc-pw32
  751. exit ;;
  752. x86:Interix*:[34]*)
  753. echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  754. exit ;;
  755. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  756. echo i${UNAME_MACHINE}-pc-mks
  757. exit ;;
  758. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  759. # How do we know it's Interix rather than the generic POSIX subsystem?
  760. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  761. # UNAME_MACHINE based on the output of uname instead of i386?
  762. echo i586-pc-interix
  763. exit ;;
  764. i*:UWIN*:*)
  765. echo ${UNAME_MACHINE}-pc-uwin
  766. exit ;;
  767. amd64:CYGWIN*:*:*)
  768. echo x86_64-unknown-cygwin
  769. exit ;;
  770. p*:CYGWIN*:*)
  771. echo powerpcle-unknown-cygwin
  772. exit ;;
  773. prep*:SunOS:5.*:*)
  774. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  775. exit ;;
  776. *:GNU:*:*)
  777. # the GNU system
  778. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  779. exit ;;
  780. *:GNU/*:*:*)
  781. # other systems with GNU libc and userland
  782. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  783. exit ;;
  784. i*86:Minix:*:*)
  785. echo ${UNAME_MACHINE}-pc-minix
  786. exit ;;
  787. arm*:Linux:*:*)
  788. echo ${UNAME_MACHINE}-unknown-linux-gnu
  789. exit ;;
  790. cris:Linux:*:*)
  791. echo cris-axis-linux-gnu
  792. exit ;;
  793. crisv32:Linux:*:*)
  794. echo crisv32-axis-linux-gnu
  795. exit ;;
  796. frv:Linux:*:*)
  797. echo frv-unknown-linux-gnu
  798. exit ;;
  799. ia64:Linux:*:*)
  800. echo ${UNAME_MACHINE}-unknown-linux-gnu
  801. exit ;;
  802. m32r*:Linux:*:*)
  803. echo ${UNAME_MACHINE}-unknown-linux-gnu
  804. exit ;;
  805. m68*:Linux:*:*)
  806. echo ${UNAME_MACHINE}-unknown-linux-gnu
  807. exit ;;
  808. mips:Linux:*:*)
  809. eval $set_cc_for_build
  810. sed 's/^ //' << EOF >$dummy.c
  811. #undef CPU
  812. #undef mips
  813. #undef mipsel
  814. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  815. CPU=mipsel
  816. #else
  817. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  818. CPU=mips
  819. #else
  820. CPU=
  821. #endif
  822. #endif
  823. EOF
  824. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  825. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  826. ;;
  827. mips64:Linux:*:*)
  828. eval $set_cc_for_build
  829. sed 's/^ //' << EOF >$dummy.c
  830. #undef CPU
  831. #undef mips64
  832. #undef mips64el
  833. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  834. CPU=mips64el
  835. #else
  836. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  837. CPU=mips64
  838. #else
  839. CPU=
  840. #endif
  841. #endif
  842. EOF
  843. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  844. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  845. ;;
  846. ppc:Linux:*:*)
  847. echo powerpc-unknown-linux-gnu
  848. exit ;;
  849. ppc64:Linux:*:*)
  850. echo powerpc64-unknown-linux-gnu
  851. exit ;;
  852. alpha:Linux:*:*)
  853. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  854. EV5) UNAME_MACHINE=alphaev5 ;;
  855. EV56) UNAME_MACHINE=alphaev56 ;;
  856. PCA56) UNAME_MACHINE=alphapca56 ;;
  857. PCA57) UNAME_MACHINE=alphapca56 ;;
  858. EV6) UNAME_MACHINE=alphaev6 ;;
  859. EV67) UNAME_MACHINE=alphaev67 ;;
  860. EV68*) UNAME_MACHINE=alphaev68 ;;
  861. esac
  862. objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  863. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  864. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  865. exit ;;
  866. parisc:Linux:*:* | hppa:Linux:*:*)
  867. # Look for CPU level
  868. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  869. PA7*) echo hppa1.1-unknown-linux-gnu ;;
  870. PA8*) echo hppa2.0-unknown-linux-gnu ;;
  871. *) echo hppa-unknown-linux-gnu ;;
  872. esac
  873. exit ;;
  874. parisc64:Linux:*:* | hppa64:Linux:*:*)
  875. echo hppa64-unknown-linux-gnu
  876. exit ;;
  877. s390:Linux:*:* | s390x:Linux:*:*)
  878. echo ${UNAME_MACHINE}-ibm-linux
  879. exit ;;
  880. sh64*:Linux:*:*)
  881. echo ${UNAME_MACHINE}-unknown-linux-gnu
  882. exit ;;
  883. sh*:Linux:*:*)
  884. echo ${UNAME_MACHINE}-unknown-linux-gnu
  885. exit ;;
  886. sparc:Linux:*:* | sparc64:Linux:*:*)
  887. echo ${UNAME_MACHINE}-unknown-linux-gnu
  888. exit ;;
  889. x86_64:Linux:*:*)
  890. echo x86_64-unknown-linux-gnu
  891. exit ;;
  892. i*86:Linux:*:*)
  893. # The BFD linker knows what the default object file format is, so
  894. # first see if it will tell us. cd to the root directory to prevent
  895. # problems with other programs or directories called `ld' in the path.
  896. # Set LC_ALL=C to ensure ld outputs messages in English.
  897. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  898. | sed -ne '/supported targets:/!d
  899. s/[ ][ ]*/ /g
  900. s/.*supported targets: *//
  901. s/ .*//
  902. p'`
  903. case "$ld_supported_targets" in
  904. elf32-i386)
  905. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  906. ;;
  907. a.out-i386-linux)
  908. echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  909. exit ;;
  910. coff-i386)
  911. echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  912. exit ;;
  913. "")
  914. # Either a pre-BFD a.out linker (linux-gnuoldld) or
  915. # one that does not give us useful --help.
  916. echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  917. exit ;;
  918. esac
  919. # Determine whether the default compiler is a.out or elf
  920. eval $set_cc_for_build
  921. sed 's/^ //' << EOF >$dummy.c
  922. #include <features.h>
  923. #ifdef __ELF__
  924. # ifdef __GLIBC__
  925. # if __GLIBC__ >= 2
  926. LIBC=gnu
  927. # else
  928. LIBC=gnulibc1
  929. # endif
  930. # else
  931. LIBC=gnulibc1
  932. # endif
  933. #else
  934. #ifdef __INTEL_COMPILER
  935. LIBC=gnu
  936. #else
  937. LIBC=gnuaout
  938. #endif
  939. #endif
  940. #ifdef __dietlibc__
  941. LIBC=dietlibc
  942. #endif
  943. EOF
  944. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  945. test x"${LIBC}" != x && {
  946. echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  947. exit
  948. }
  949. test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  950. ;;
  951. i*86:DYNIX/ptx:4*:*)
  952. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  953. # earlier versions are messed up and put the nodename in both
  954. # sysname and nodename.
  955. echo i386-sequent-sysv4
  956. exit ;;
  957. i*86:UNIX_SV:4.2MP:2.*)
  958. # Unixware is an offshoot of SVR4, but it has its own version
  959. # number series starting with 2...
  960. # I am not positive that other SVR4 systems won't match this,
  961. # I just have to hope. -- rms.
  962. # Use sysv4.2uw... so that sysv4* matches it.
  963. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  964. exit ;;
  965. i*86:OS/2:*:*)
  966. # If we were able to find `uname', then EMX Unix compatibility
  967. # is probably installed.
  968. echo ${UNAME_MACHINE}-pc-os2-emx
  969. exit ;;
  970. i*86:XTS-300:*:STOP)
  971. echo ${UNAME_MACHINE}-unknown-stop
  972. exit ;;
  973. i*86:atheos:*:*)
  974. echo ${UNAME_MACHINE}-unknown-atheos
  975. exit ;;
  976. i*86:syllable:*:*)
  977. echo ${UNAME_MACHINE}-pc-syllable
  978. exit ;;
  979. i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  980. echo i386-unknown-lynxos${UNAME_RELEASE}
  981. exit ;;
  982. i*86:*DOS:*:*)
  983. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  984. exit ;;
  985. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  986. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  987. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  988. echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  989. else
  990. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  991. fi
  992. exit ;;
  993. i*86:*:5:[678]*)
  994. # UnixWare 7.x, OpenUNIX and OpenServer 6.
  995. case `/bin/uname -X | grep "^Machine"` in
  996. *486*) UNAME_MACHINE=i486 ;;
  997. *Pentium) UNAME_MACHINE=i586 ;;
  998. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  999. esac
  1000. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  1001. exit ;;
  1002. i*86:*:3.2:*)
  1003. if test -f /usr/options/cb.name; then
  1004. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  1005. echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  1006. elif /bin/uname -X 2>/dev/null >/dev/null ; then
  1007. UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  1008. (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  1009. (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  1010. && UNAME_MACHINE=i586
  1011. (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  1012. && UNAME_MACHINE=i686
  1013. (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  1014. && UNAME_MACHINE=i686
  1015. echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  1016. else
  1017. echo ${UNAME_MACHINE}-pc-sysv32
  1018. fi
  1019. exit ;;
  1020. pc:*:*:*)
  1021. # Left here for compatibility:
  1022. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1023. # the processor, so we play safe by assuming i386.
  1024. echo i386-pc-msdosdjgpp
  1025. exit ;;
  1026. Intel:Mach:3*:*)
  1027. echo i386-pc-mach3
  1028. exit ;;
  1029. paragon:*:*:*)
  1030. echo i860-intel-osf1
  1031. exit ;;
  1032. i860:*:4.*:*) # i860-SVR4
  1033. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  1034. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  1035. else # Add other i860-SVR4 vendors below as they are discovered.
  1036. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  1037. fi
  1038. exit ;;
  1039. mini*:CTIX:SYS*5:*)
  1040. # "miniframe"
  1041. echo m68010-convergent-sysv
  1042. exit ;;
  1043. mc68k:UNIX:SYSTEM5:3.51m)
  1044. echo m68k-convergent-sysv
  1045. exit ;;
  1046. M680?0:D-NIX:5.3:*)
  1047. echo m68k-diab-dnix
  1048. exit ;;
  1049. M68*:*:R3V[5678]*:*)
  1050. test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  1051. 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
  1052. OS_REL=''
  1053. test -r /etc/.relid \
  1054. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  1055. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1056. && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  1057. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  1058. && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  1059. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  1060. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1061. && { echo i486-ncr-sysv4; exit; } ;;
  1062. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  1063. echo m68k-unknown-lynxos${UNAME_RELEASE}
  1064. exit ;;
  1065. mc68030:UNIX_System_V:4.*:*)
  1066. echo m68k-atari-sysv4
  1067. exit ;;
  1068. TSUNAMI:LynxOS:2.*:*)
  1069. echo sparc-unknown-lynxos${UNAME_RELEASE}
  1070. exit ;;
  1071. rs6000:LynxOS:2.*:*)
  1072. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1073. exit ;;
  1074. PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  1075. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1076. exit ;;
  1077. SM[BE]S:UNIX_SV:*:*)
  1078. echo mips-dde-sysv${UNAME_RELEASE}
  1079. exit ;;
  1080. RM*:ReliantUNIX-*:*:*)
  1081. echo mips-sni-sysv4
  1082. exit ;;
  1083. RM*:SINIX-*:*:*)
  1084. echo mips-sni-sysv4
  1085. exit ;;
  1086. *:SINIX-*:*:*)
  1087. if uname -p 2>/dev/null >/dev/null ; then
  1088. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1089. echo ${UNAME_MACHINE}-sni-sysv4
  1090. else
  1091. echo ns32k-sni-sysv
  1092. fi
  1093. exit ;;
  1094. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  1095. # says <Richard.M.Bartel@ccMail.Census.GOV>
  1096. echo i586-unisys-sysv4
  1097. exit ;;
  1098. *:UNIX_System_V:4*:FTX*)
  1099. # From Gerald Hewes <hewes@openmarket.com>.
  1100. # How about differentiating between stratus architectures? -djm
  1101. echo hppa1.1-stratus-sysv4
  1102. exit ;;
  1103. *:*:*:FTX*)
  1104. # From seanf@swdc.stratus.com.
  1105. echo i860-stratus-sysv4
  1106. exit ;;
  1107. i*86:VOS:*:*)
  1108. # From Paul.Green@stratus.com.
  1109. echo ${UNAME_MACHINE}-stratus-vos
  1110. exit ;;
  1111. *:VOS:*:*)
  1112. # From Paul.Green@stratus.com.
  1113. echo hppa1.1-stratus-vos
  1114. exit ;;
  1115. mc68*:A/UX:*:*)
  1116. echo m68k-apple-aux${UNAME_RELEASE}
  1117. exit ;;
  1118. news*:NEWS-OS:6*:*)
  1119. echo mips-sony-newsos6
  1120. exit ;;
  1121. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  1122. if [ -d /usr/nec ]; then
  1123. echo mips-nec-sysv${UNAME_RELEASE}
  1124. else
  1125. echo mips-unknown-sysv${UNAME_RELEASE}
  1126. fi
  1127. exit ;;
  1128. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  1129. echo powerpc-be-beos
  1130. exit ;;
  1131. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  1132. echo powerpc-apple-beos
  1133. exit ;;
  1134. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  1135. echo i586-pc-beos
  1136. exit ;;
  1137. SX-4:SUPER-UX:*:*)
  1138. echo sx4-nec-superux${UNAME_RELEASE}
  1139. exit ;;
  1140. SX-5:SUPER-UX:*:*)
  1141. echo sx5-nec-superux${UNAME_RELEASE}
  1142. exit ;;
  1143. SX-6:SUPER-UX:*:*)
  1144. echo sx6-nec-superux${UNAME_RELEASE}
  1145. exit ;;
  1146. Power*:Rhapsody:*:*)
  1147. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  1148. exit ;;
  1149. *:Rhapsody:*:*)
  1150. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1151. exit ;;
  1152. *:Darwin:*:*)
  1153. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  1154. case $UNAME_PROCESSOR in
  1155. *86) UNAME_PROCESSOR=i686 ;;
  1156. unknown) UNAME_PROCESSOR=powerpc ;;
  1157. esac
  1158. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  1159. exit ;;
  1160. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  1161. UNAME_PROCESSOR=`uname -p`
  1162. if test "$UNAME_PROCESSOR" = "x86"; then
  1163. UNAME_PROCESSOR=i386
  1164. UNAME_MACHINE=pc
  1165. fi
  1166. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  1167. exit ;;
  1168. *:QNX:*:4*)
  1169. echo i386-pc-qnx
  1170. exit ;;
  1171. NSE-?:NONSTOP_KERNEL:*:*)
  1172. echo nse-tandem-nsk${UNAME_RELEASE}
  1173. exit ;;
  1174. NSR-?:NONSTOP_KERNEL:*:*)
  1175. echo nsr-tandem-nsk${UNAME_RELEASE}
  1176. exit ;;
  1177. *:NonStop-UX:*:*)
  1178. echo mips-compaq-nonstopux
  1179. exit ;;
  1180. BS2000:POSIX*:*:*)
  1181. echo bs2000-siemens-sysv
  1182. exit ;;
  1183. DS/*:UNIX_System_V:*:*)
  1184. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  1185. exit ;;
  1186. *:Plan9:*:*)
  1187. # "uname -m" is not consistent, so use $cputype instead. 386
  1188. # is converted to i386 for consistency with other x86
  1189. # operating systems.
  1190. if test "$cputype" = "386"; then
  1191. UNAME_MACHINE=i386
  1192. else
  1193. UNAME_MACHINE="$cputype"
  1194. fi
  1195. echo ${UNAME_MACHINE}-unknown-plan9
  1196. exit ;;
  1197. *:TOPS-10:*:*)
  1198. echo pdp10-unknown-tops10
  1199. exit ;;
  1200. *:TENEX:*:*)
  1201. echo pdp10-unknown-tenex
  1202. exit ;;
  1203. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  1204. echo pdp10-dec-tops20
  1205. exit ;;
  1206. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  1207. echo pdp10-xkl-tops20
  1208. exit ;;
  1209. *:TOPS-20:*:*)
  1210. echo pdp10-unknown-tops20
  1211. exit ;;
  1212. *:ITS:*:*)
  1213. echo pdp10-unknown-its
  1214. exit ;;
  1215. SEI:*:*:SEIUX)
  1216. echo mips-sei-seiux${UNAME_RELEASE}
  1217. exit ;;
  1218. *:DragonFly:*:*)
  1219. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  1220. exit ;;
  1221. *:*VMS:*:*)
  1222. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1223. case "${UNAME_MACHINE}" in
  1224. A*) echo alpha-dec-vms ; exit ;;
  1225. I*) echo ia64-dec-vms ; exit ;;
  1226. V*) echo vax-dec-vms ; exit ;;
  1227. esac ;;
  1228. *:XENIX:*:SysV)
  1229. echo i386-pc-xenix
  1230. exit ;;
  1231. i*86:skyos:*:*)
  1232. echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  1233. exit ;;
  1234. esac
  1235. #echo '(No uname command or uname output not recognized.)' 1>&2
  1236. #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  1237. eval $set_cc_for_build
  1238. cat >$dummy.c <<EOF
  1239. #ifdef _SEQUENT_
  1240. # include <sys/types.h>
  1241. # include <sys/utsname.h>
  1242. #endif
  1243. main ()
  1244. {
  1245. #if defined (sony)
  1246. #if defined (MIPSEB)
  1247. /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  1248. I don't know.... */
  1249. printf ("mips-sony-bsd\n"); exit (0);
  1250. #else
  1251. #include <sys/param.h>
  1252. printf ("m68k-sony-newsos%s\n",
  1253. #ifdef NEWSOS4
  1254. "4"
  1255. #else
  1256. ""
  1257. #endif
  1258. ); exit (0);
  1259. #endif
  1260. #endif
  1261. #if defined (__arm) && defined (__acorn) && defined (__unix)
  1262. printf ("arm-acorn-riscix\n"); exit (0);
  1263. #endif
  1264. #if defined (hp300) && !defined (hpux)
  1265. printf ("m68k-hp-bsd\n"); exit (0);
  1266. #endif
  1267. #if defined (NeXT)
  1268. #if !defined (__ARCHITECTURE__)
  1269. #define __ARCHITECTURE__ "m68k"
  1270. #endif
  1271. int version;
  1272. version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  1273. if (version < 4)
  1274. printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  1275. else
  1276. printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  1277. exit (0);
  1278. #endif
  1279. #if defined (MULTIMAX) || defined (n16)
  1280. #if defined (UMAXV)
  1281. printf ("ns32k-encore-sysv\n"); exit (0);
  1282. #else
  1283. #if defined (CMU)
  1284. printf ("ns32k-encore-mach\n"); exit (0);
  1285. #else
  1286. printf ("ns32k-encore-bsd\n"); exit (0);
  1287. #endif
  1288. #endif
  1289. #endif
  1290. #if defined (__386BSD__)
  1291. printf ("i386-pc-bsd\n"); exit (0);
  1292. #endif
  1293. #if defined (sequent)
  1294. #if defined (i386)
  1295. printf ("i386-sequent-dynix\n"); exit (0);
  1296. #endif
  1297. #if defined (ns32000)
  1298. printf ("ns32k-sequent-dynix\n"); exit (0);
  1299. #endif
  1300. #endif
  1301. #if defined (_SEQUENT_)
  1302. struct utsname un;
  1303. uname(&un);
  1304. if (strncmp(un.version, "V2", 2) == 0) {
  1305. printf ("i386-sequent-ptx2\n"); exit (0);
  1306. }
  1307. if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  1308. printf ("i386-sequent-ptx1\n"); exit (0);
  1309. }
  1310. printf ("i386-sequent-ptx\n"); exit (0);
  1311. #endif
  1312. #if defined (vax)
  1313. # if !defined (ultrix)
  1314. # include <sys/param.h>
  1315. # if defined (BSD)
  1316. # if BSD == 43
  1317. printf ("vax-dec-bsd4.3\n"); exit (0);
  1318. # else
  1319. # if BSD == 199006
  1320. printf ("vax-dec-bsd4.3reno\n"); exit (0);
  1321. # else
  1322. printf ("vax-dec-bsd\n"); exit (0);
  1323. # endif
  1324. # endif
  1325. # else
  1326. printf ("vax-dec-bsd\n"); exit (0);
  1327. # endif
  1328. # else
  1329. printf ("vax-dec-ultrix\n"); exit (0);
  1330. # endif
  1331. #endif
  1332. #if defined (alliant) && defined (i860)
  1333. printf ("i860-alliant-bsd\n"); exit (0);
  1334. #endif
  1335. exit (1);
  1336. }
  1337. EOF
  1338. $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  1339. { echo "$SYSTEM_NAME"; exit; }
  1340. # Apollos put the system type in the environment.
  1341. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  1342. # Convex versions that predate uname can use getsysinfo(1)
  1343. if [ -x /usr/convex/getsysinfo ]
  1344. then
  1345. case `getsysinfo -f cpu_type` in
  1346. c1*)
  1347. echo c1-convex-bsd
  1348. exit ;;
  1349. c2*)
  1350. if getsysinfo -f scalar_acc
  1351. then echo c32-convex-bsd
  1352. else echo c2-convex-bsd
  1353. fi
  1354. exit ;;
  1355. c34*)
  1356. echo c34-convex-bsd
  1357. exit ;;
  1358. c38*)
  1359. echo c38-convex-bsd
  1360. exit ;;
  1361. c4*)
  1362. echo c4-convex-bsd
  1363. exit ;;
  1364. esac
  1365. fi
  1366. cat >&2 <<EOF
  1367. $0: unable to guess system type
  1368. This script, last modified $timestamp, has failed to recognize
  1369. the operating system you are using. It is advised that you
  1370. download the most up to date version of the config scripts from
  1371. http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  1372. and
  1373. http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  1374. If the version you run ($0) is already up to date, please
  1375. send the following data and any information you think might be
  1376. pertinent to <config-patches@gnu.org> in order to provide the needed
  1377. information to handle your system.
  1378. config.guess timestamp = $timestamp
  1379. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1380. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1381. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1382. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1383. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  1384. /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  1385. hostinfo = `(hostinfo) 2>/dev/null`
  1386. /bin/universe = `(/bin/universe) 2>/dev/null`
  1387. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  1388. /bin/arch = `(/bin/arch) 2>/dev/null`
  1389. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  1390. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  1391. UNAME_MACHINE = ${UNAME_MACHINE}
  1392. UNAME_RELEASE = ${UNAME_RELEASE}
  1393. UNAME_SYSTEM = ${UNAME_SYSTEM}
  1394. UNAME_VERSION = ${UNAME_VERSION}
  1395. EOF
  1396. exit 1
  1397. # Local variables:
  1398. # eval: (add-hook 'write-file-hooks 'time-stamp)
  1399. # time-stamp-start: "timestamp='"
  1400. # time-stamp-format: "%:y-%02m-%02d"
  1401. # time-stamp-end: "'"
  1402. # End: