3
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4
4
# Free Software Foundation, Inc.
5
5
6
- timestamp=' 2001-11-08 '
6
+ timestamp=' 2001-09-04 '
7
7
8
8
# This file is free software; you can redistribute it and/or modify it
9
9
# under the terms of the GNU General Public License as published by
@@ -24,9 +24,8 @@ timestamp='2001-11-08'
24
24
# configuration script generated by Autoconf, you may include it under
25
25
# the same distribution terms that you use for the rest of that program.
26
26
27
- # Originally written by Per Bothner <[email protected] >.
28
- # Please send patches to <[email protected] >. Submit a context
29
- # diff and a properly formatted ChangeLog entry.
27
+ # Written by Per Bothner <[email protected] >.
28
+ # Please send patches to <[email protected] >.
30
29
#
31
30
# This script attempts to guess a canonical system name similar to
32
31
# config.sub. If it succeeds, it prints the system name on stdout, and
@@ -128,7 +127,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
128
127
129
128
case " ${UNAME_MACHINE} :${UNAME_SYSTEM} :${UNAME_RELEASE} :${UNAME_VERSION} " in
130
129
* :NetBSD:* :* )
131
- # NetBSD (nbsd) targets should (where applicable) match one or
130
+ # Netbsd (nbsd) targets should (where applicable) match one or
132
131
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
133
132
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
134
133
# switched to ELF, *-*-netbsd* would select the old
@@ -145,7 +144,6 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145
144
macppc) machine=powerpc-apple ;;
146
145
hp3[0-9][05]) machine=m68k-hp ;;
147
146
ibmrt|romp-ibm) machine=romp-ibm ;;
148
- sparc* ) machine=` uname -p` -unknown ;;
149
147
* ) machine=${UNAME_MACHINE} -unknown ;;
150
148
esac
151
149
# The Operating System including object format, if it has switched
@@ -174,45 +172,6 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
174
172
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
175
173
echo " ${machine} -${os}${release} "
176
174
exit 0 ;;
177
- amiga:OpenBSD:* :* )
178
- echo m68k-unknown-openbsd${UNAME_RELEASE}
179
- exit 0 ;;
180
- arc:OpenBSD:* :* )
181
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
182
- exit 0 ;;
183
- hp300:OpenBSD:* :* )
184
- echo m68k-unknown-openbsd${UNAME_RELEASE}
185
- exit 0 ;;
186
- mac68k:OpenBSD:* :* )
187
- echo m68k-unknown-openbsd${UNAME_RELEASE}
188
- exit 0 ;;
189
- macppc:OpenBSD:* :* )
190
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
191
- exit 0 ;;
192
- mvme68k:OpenBSD:* :* )
193
- echo m68k-unknown-openbsd${UNAME_RELEASE}
194
- exit 0 ;;
195
- mvme88k:OpenBSD:* :* )
196
- echo m88k-unknown-openbsd${UNAME_RELEASE}
197
- exit 0 ;;
198
- mvmeppc:OpenBSD:* :* )
199
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
200
- exit 0 ;;
201
- pmax:OpenBSD:* :* )
202
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
203
- exit 0 ;;
204
- sgi:OpenBSD:* :* )
205
- echo mipseb-unknown-openbsd${UNAME_RELEASE}
206
- exit 0 ;;
207
- sun3:OpenBSD:* :* )
208
- echo m68k-unknown-openbsd${UNAME_RELEASE}
209
- exit 0 ;;
210
- wgrisc:OpenBSD:* :* )
211
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
212
- exit 0 ;;
213
- * :OpenBSD:* :* )
214
- echo ${UNAME_MACHINE} -unknown-openbsd${UNAME_RELEASE}
215
- exit 0 ;;
216
175
alpha:OSF1:* :* )
217
176
if test $UNAME_RELEASE = " V4.0" ; then
218
177
UNAME_RELEASE=` /usr/sbin/sizer -v | awk ' {print $3}' `
288
247
Amiga* :UNIX_System_V:4.0:* )
289
248
echo m68k-unknown-sysv4
290
249
exit 0;;
250
+ amiga:OpenBSD:* :* )
251
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
252
+ exit 0 ;;
291
253
* :[Aa]miga[Oo][Ss]:* :* )
292
254
echo ${UNAME_MACHINE} -unknown-amigaos
293
255
exit 0 ;;
256
+ arc64:OpenBSD:* :* )
257
+ echo mips64el-unknown-openbsd${UNAME_RELEASE}
258
+ exit 0 ;;
259
+ arc:OpenBSD:* :* )
260
+ echo mipsel-unknown-openbsd${UNAME_RELEASE}
261
+ exit 0 ;;
262
+ hkmips:OpenBSD:* :* )
263
+ echo mips-unknown-openbsd${UNAME_RELEASE}
264
+ exit 0 ;;
265
+ pmax:OpenBSD:* :* )
266
+ echo mipsel-unknown-openbsd${UNAME_RELEASE}
267
+ exit 0 ;;
268
+ sgi:OpenBSD:* :* )
269
+ echo mips-unknown-openbsd${UNAME_RELEASE}
270
+ exit 0 ;;
271
+ wgrisc:OpenBSD:* :* )
272
+ echo mipsel-unknown-openbsd${UNAME_RELEASE}
273
+ exit 0 ;;
294
274
* :OS/390:* :* )
295
275
echo i370-ibm-openedition
296
276
exit 0 ;;
353
333
aushp:SunOS:* :* )
354
334
echo sparc-auspex-sunos${UNAME_RELEASE}
355
335
exit 0 ;;
336
+ sparc* :NetBSD:* )
337
+ echo ` uname -p` -unknown-netbsd${UNAME_RELEASE}
338
+ exit 0 ;;
339
+ atari* :OpenBSD:* :* )
340
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
341
+ exit 0 ;;
356
342
# The situation for MiNT is a little confusing. The machine name
357
343
# can be virtually everything (everything which is not
358
344
# "atarist" or "atariste" at least should have a processor
379
365
* :* MiNT:* :* | * :* mint:* :* | * :* TOS:* :* )
380
366
echo m68k-unknown-mint${UNAME_RELEASE}
381
367
exit 0 ;;
368
+ sun3* :OpenBSD:* :* )
369
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
370
+ exit 0 ;;
371
+ mac68k:OpenBSD:* :* )
372
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
373
+ exit 0 ;;
374
+ mvme68k:OpenBSD:* :* )
375
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
376
+ exit 0 ;;
377
+ mvme88k:OpenBSD:* :* )
378
+ echo m88k-unknown-openbsd${UNAME_RELEASE}
379
+ exit 0 ;;
382
380
powerpc:machten:* :* )
383
381
echo powerpc-apple-machten${UNAME_RELEASE}
384
382
exit 0 ;;
548
546
9000/31? ) HP_ARCH=m68000 ;;
549
547
9000/[34]?? ) HP_ARCH=m68k ;;
550
548
9000/[678][0-9][0-9])
551
- if [ -x /usr/bin/getconf ]; then
552
- sc_cpu_version=` /usr/bin/getconf SC_CPU_VERSION 2> /dev/null`
549
+ case " ${HPUX_REV} " in
550
+ 11.[0-9][0-9])
551
+ if [ -x /usr/bin/getconf ]; then
552
+ sc_cpu_version=` /usr/bin/getconf SC_CPU_VERSION 2> /dev/null`
553
553
sc_kernel_bits=` /usr/bin/getconf SC_KERNEL_BITS 2> /dev/null`
554
554
case " ${sc_cpu_version} " in
555
555
523) HP_ARCH=" hppa1.0" ;; # CPU_PA_RISC1_0
@@ -558,13 +558,13 @@ EOF
558
558
case " ${sc_kernel_bits} " in
559
559
32) HP_ARCH=" hppa2.0n" ;;
560
560
64) HP_ARCH=" hppa2.0w" ;;
561
- ' ' ) HP_ARCH=" hppa2.0" ;; # HP-UX 10.20
562
561
esac ;;
563
562
esac
564
- fi
565
- if [ " ${HP_ARCH} " = " " ]; then
566
- eval $set_cc_for_build
567
- sed ' s/^ //' << EOF >$dummy .c
563
+ fi ;;
564
+ esac
565
+ if [ " ${HP_ARCH} " = " " ]; then
566
+ eval $set_cc_for_build
567
+ sed ' s/^ //' << EOF >$dummy .c
568
568
569
569
#define _HPUX_SOURCE
570
570
#include <stdlib.h>
@@ -597,10 +597,10 @@ EOF
597
597
exit (0);
598
598
}
599
599
EOF
600
- (CCOPTS= $CC_FOR_BUILD $dummy .c -o $dummy 2> /dev/null) && HP_ARCH=` ./$dummy `
601
- if test -z " $HP_ARCH " ; then HP_ARCH=hppa; fi
602
- rm -f $dummy .c $dummy
603
- fi ;;
600
+ (CCOPTS= $CC_FOR_BUILD $dummy .c -o $dummy 2> /dev/null ) && HP_ARCH=` ./$dummy `
601
+ if test -z " $HP_ARCH " ; then HP_ARCH=hppa; fi
602
+ rm -f $dummy .c $dummy
603
+ fi ;;
604
604
esac
605
605
echo ${HP_ARCH} -hp-hpux${HPUX_REV}
606
606
exit 0 ;;
664
664
parisc* :Lites* :* :* )
665
665
echo hppa1.1-hp-lites
666
666
exit 0 ;;
667
+ hppa* :OpenBSD:* :* )
668
+ echo hppa-unknown-openbsd
669
+ exit 0 ;;
667
670
C1* :ConvexOS:* :* | convex:ConvexOS:C1* :* )
668
671
echo c1-convex-bsd
669
672
exit 0 ;;
715
718
FUJITSU_REL=` echo ${UNAME_RELEASE} | sed -e ' s/ /_/' `
716
719
echo " ${FUJITSU_PROC} -fujitsu-${FUJITSU_SYS}${FUJITSU_REL} "
717
720
exit 0 ;;
721
+ hp300:OpenBSD:* :* )
722
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
723
+ exit 0 ;;
718
724
i* 86:BSD/386:* :* | i* 86:BSD/OS:* :* | * :Ascend\ Embedded/OS:* :* )
719
725
echo ${UNAME_MACHINE} -pc-bsdi${UNAME_RELEASE}
720
726
exit 0 ;;
727
733
* :FreeBSD:* :* )
728
734
echo ${UNAME_MACHINE} -unknown-freebsd` echo ${UNAME_RELEASE} | sed -e ' s/[-(].*//' `
729
735
exit 0 ;;
736
+ * :OpenBSD:* :* )
737
+ echo ${UNAME_MACHINE} -unknown-openbsd` echo ${UNAME_RELEASE} | sed -e ' s/[-_].*/\./' `
738
+ exit 0 ;;
730
739
i* :CYGWIN* :* )
731
740
echo ${UNAME_MACHINE} -pc-cygwin
732
741
exit 0 ;;
947
956
exit 0 ;;
948
957
M68* :* :R3V[567]* :* )
949
958
test -r /sysV68 && echo ' m68k-motorola-sysv' && exit 0 ;;
950
- 3[34]?? :* :4.0:3.0 | 3[34]?? A:* :4.0:3.0 | 3[34]?? ,* :* :4.0:3.0 | 3[34] ?? / * : * :4.0:3.0 | 4850: * :4.0:3.0 | SKA40 :* :4.0:3.0)
959
+ 3[34]?? :* :4.0:3.0 | 3[34]?? A:* :4.0:3.0 | 3[34]?? ,* :* :4.0:3.0 | 4850:* :4.0:3.0)
951
960
OS_REL=' '
952
961
test -r /etc/.relid \
953
962
&& OS_REL=.` sed -n ' s/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
0 commit comments