24
24
25
25
# Written by Per Bothner <[email protected] >.
26
26
# The master version of this file is at the FSF in /home/gd/gnu/lib.
27
- # Please send patches to the Autoconf mailing list <[email protected] >.
27
+ # Please send patches to <autoconf-patches @gnu.org>.
28
28
#
29
29
# This script attempts to guess a canonical system name similar to
30
30
# config.sub. If it succeeds, it prints the system name on stdout, and
156
156
wgrisc:OpenBSD:* :* )
157
157
echo mipsel-unknown-openbsd${UNAME_RELEASE}
158
158
exit 0 ;;
159
+ * :OS/390:* :* )
160
+ echo i370-ibm-openedition
161
+ exit 0 ;;
159
162
arm:RISC* :1.[012]* :* |arm:riscix:1.[012]* :* )
160
163
echo arm-acorn-riscix${UNAME_RELEASE}
161
164
exit 0;;
@@ -328,15 +331,18 @@ EOF
328
331
AViiON:dgux:* :* )
329
332
# DG/UX returns AViiON for all architectures
330
333
UNAME_PROCESSOR=` /usr/bin/uname -p`
331
- if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
332
- if [ ${TARGET_BINARY_INTERFACE} x = m88kdguxelfx \
333
- -o ${TARGET_BINARY_INTERFACE} x = x ] ; then
334
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110]
335
+ then
336
+ if [ ${TARGET_BINARY_INTERFACE} x = m88kdguxelfx ] || \
337
+ [ ${TARGET_BINARY_INTERFACE} x = x ]
338
+ then
334
339
echo m88k-dg-dgux${UNAME_RELEASE}
335
- else
340
+ else
336
341
echo m88k-dg-dguxbcs${UNAME_RELEASE}
342
+ fi
343
+ else
344
+ echo i586-dg-dgux${UNAME_RELEASE}
337
345
fi
338
- else echo i586-dg-dgux${UNAME_RELEASE}
339
- fi
340
346
exit 0 ;;
341
347
M88* :DolphinOS:* :* ) # DolphinOS (SVR3)
342
348
echo m88k-dolphin-sysv3
453
459
exit (0);
454
460
}
455
461
EOF
456
- ($CC_FOR_BUILD $dummy .c -o $dummy 2> /dev/null ) && HP_ARCH=` ./$dummy `
462
+ (CCOPTS= $CC_FOR_BUILD $dummy .c -o $dummy 2> /dev/null ) && HP_ARCH=` ./$dummy `
457
463
rm -f $dummy .c $dummy
458
464
esac
459
465
HPUX_REV=` echo ${UNAME_RELEASE} | sed -e ' s/[^.]*.[0B]*//' `
550
556
echo t90-cray-unicos${UNAME_RELEASE}
551
557
exit 0 ;;
552
558
CRAY* T3E:* :* :* )
553
- echo t3e -cray-unicosmk${UNAME_RELEASE}
559
+ echo alpha -cray-unicosmk${UNAME_RELEASE}
554
560
exit 0 ;;
555
561
CRAY-2:* :* :* )
556
562
echo cray2-cray-unicos
588
594
echo ${UNAME_MACHINE} -unknown-freebsd` echo ${UNAME_RELEASE} | sed -e ' s/[-(].*//' `
589
595
exit 0 ;;
590
596
* :NetBSD:* :* )
591
- echo ${UNAME_MACHINE} -unknown-netbsd` echo ${UNAME_RELEASE} | sed -e ' s/[-_].*/\. /' `
597
+ echo ${UNAME_MACHINE} -unknown-netbsd` echo ${UNAME_RELEASE} | sed -e ' s/[-_].*//' `
592
598
exit 0 ;;
593
599
* :OpenBSD:* :* )
594
600
echo ${UNAME_MACHINE} -unknown-openbsd` echo ${UNAME_RELEASE} | sed -e ' s/[-_].*/\./' `
618
624
echo ` echo ${UNAME_MACHINE} | sed -e ' s,[-/].*$,,' ` -unknown-gnu` echo ${UNAME_RELEASE} | sed -e ' s,/.*$,,' `
619
625
exit 0 ;;
620
626
* :Linux:* :* )
621
- # # uname on the ARM produces all sorts of strangeness, and we need to
622
- # # filter it out.
623
- # case "$UNAME_MACHINE" in
624
- # armv*) UNAME_MACHINE=$UNAME_MACHINE ;;
625
- # arm* | sa110*) UNAME_MACHINE="arm" ;;
626
- # esac
627
627
628
628
# The BFD linker knows what the default object file format is, so
629
629
# first see if it will tell us. cd to the root directory to prevent
@@ -636,12 +636,38 @@ EOF
636
636
s/ .*//
637
637
p' `
638
638
case " $ld_supported_emulations " in
639
- i? 86linux) echo " ${UNAME_MACHINE} -pc-linux-gnuaout" ; exit 0 ;;
640
- i? 86coff) echo " ${UNAME_MACHINE} -pc-linux-gnucoff" ; exit 0 ;;
641
- sparclinux) echo " ${UNAME_MACHINE} -unknown-linux-gnuaout" ; exit 0 ;;
642
- armlinux) echo " ${UNAME_MACHINE} -unknown-linux-gnuaout" ; exit 0 ;;
643
- m68klinux) echo " ${UNAME_MACHINE} -unknown-linux-gnuaout" ; exit 0 ;;
644
- elf32arm) echo " ${UNAME_MACHINE} -unknown-linux-gnu" ; exit 0 ;;
639
+ * ia64)
640
+ echo " ${UNAME_MACHINE} -unknown-linux"
641
+ exit 0
642
+ ;;
643
+ i? 86linux)
644
+ echo " ${UNAME_MACHINE} -pc-linux-gnuaout"
645
+ exit 0
646
+ ;;
647
+ i? 86coff)
648
+ echo " ${UNAME_MACHINE} -pc-linux-gnucoff"
649
+ exit 0
650
+ ;;
651
+ sparclinux)
652
+ echo " ${UNAME_MACHINE} -unknown-linux-gnuaout"
653
+ exit 0
654
+ ;;
655
+ armlinux)
656
+ echo " ${UNAME_MACHINE} -unknown-linux-gnuaout"
657
+ exit 0
658
+ ;;
659
+ elf32arm* )
660
+ echo " ${UNAME_MACHINE} -unknown-linux-gnu"
661
+ exit 0
662
+ ;;
663
+ armelf_linux* )
664
+ echo " ${UNAME_MACHINE} -unknown-linux-gnu"
665
+ exit 0
666
+ ;;
667
+ m68klinux)
668
+ echo " ${UNAME_MACHINE} -unknown-linux-gnuaout"
669
+ exit 0
670
+ ;;
645
671
elf32ppc)
646
672
# Determine Lib Version
647
673
cat > $dummy .c << EOF
671
697
fi
672
698
fi
673
699
rm -f $dummy .c $dummy
674
- echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;;
700
+ echo powerpc-unknown-linux-gnu${LIBC}
701
+ exit 0
702
+ ;;
675
703
esac
676
704
677
705
if test " ${UNAME_MACHINE} " = " alpha" ; then
@@ -798,19 +826,21 @@ EOF
798
826
echo ${UNAME_MACHINE} -pc-sysv4.2uw${UNAME_VERSION}
799
827
exit 0 ;;
800
828
i? 86:* :4.* :* | i? 86:SYSTEM_V:4.* :* )
829
+ UNAME_REL=` echo ${UNAME_RELEASE} | sed ' s/\/MP$//' `
801
830
if grep Novell /usr/include/link.h > /dev/null 2> /dev/null; then
802
- echo ${UNAME_MACHINE} -univel-sysv${UNAME_RELEASE }
831
+ echo ${UNAME_MACHINE} -univel-sysv${UNAME_REL }
803
832
else
804
- echo ${UNAME_MACHINE} -pc-sysv${UNAME_RELEASE }
833
+ echo ${UNAME_MACHINE} -pc-sysv${UNAME_REL }
805
834
fi
806
835
exit 0 ;;
807
836
i? 86:* :5:7* )
808
- UNAME_REL=` (/bin/uname -X| egrep Release| sed -e ' s/.*= //' )`
809
- (/bin/uname -X| egrep i80486 > /dev/null) && UNAME_MACHINE=i486
810
- (/bin/uname -X| egrep ' ^Machine.*Pentium' > /dev/null) && UNAME_MACHINE=i586
811
- (/bin/uname -X| egrep ' ^Machine.*Pent.*II' > /dev/null) && UNAME_MACHINE=i686
812
- (/bin/uname -X| egrep ' ^Machine.*Pentium Pro' > /dev/null) && UNAME_MACHINE=i585
813
- echo ${UNAME_MACHINE} -${UNAME_SYSTEM}${UNAME_VERSION} -sysv${UNAME_RELEASE}
837
+ # Fixed at (any) Pentium or better
838
+ UNAME_MACHINE=i586
839
+ if [ ${UNAME_SYSTEM} = " UnixWare" ] ; then
840
+ echo ${UNAME_MACHINE} -sco-sysv${UNAME_RELEASE} uw${UNAME_VERSION}
841
+ else
842
+ echo ${UNAME_MACHINE} -pc-sysv${UNAME_RELEASE}
843
+ fi
814
844
exit 0 ;;
815
845
i? 86:* :3.2:* )
816
846
if test -f /usr/options/cb.name; then
944
974
* :Rhapsody:* :* )
945
975
echo ${UNAME_MACHINE} -apple-rhapsody${UNAME_RELEASE}
946
976
exit 0 ;;
977
+ * :QNX:* :4* )
978
+ echo i386-qnx-qnx${UNAME_VERSION}
979
+ exit 0 ;;
947
980
esac
948
981
949
982
# echo '(No uname command or uname output not recognized.)' 1>&2
0 commit comments