aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfig.guess29
1 files changed, 23 insertions, 6 deletions
diff --git a/config.guess b/config.guess
index d529d3544f7..dd5181a2bd3 100755
--- a/config.guess
+++ b/config.guess
@@ -251,6 +251,9 @@ EOF
251 hp8??:OSF1:*:*) 251 hp8??:OSF1:*:*)
252 echo hppa1.0-hp-osf 252 echo hppa1.0-hp-osf
253 exit 0 ;; 253 exit 0 ;;
254 parisc*:Lites*:*:*)
255 echo hppa1.1-hp-lites
256 exit 0 ;;
254 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 257 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
255 echo c1-convex-bsd 258 echo c1-convex-bsd
256 exit 0 ;; 259 exit 0 ;;
@@ -297,8 +300,22 @@ EOF
297 echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 300 echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
298 exit 0 ;; 301 exit 0 ;;
299 *:Linux:*:*) 302 *:Linux:*:*)
300 echo ${UNAME_MACHINE}-unknown-linux 303 # Determine whether the default compiler is a.out or elf
301 exit 0 ;; 304 cat >dummy.c <<EOF
305main(argc, argv)
306int argc;
307char *argv[];
308{
309#ifdef __ELF__
310 printf ("%s-unknown-linux\n", argv[1]);
311#else
312 printf ("%s-unknown-linuxaout\n", argv[1]);
313#endif
314 return 0;
315}
316EOF
317 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
318 rm -f dummy.c dummy;;
302# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions 319# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
303# are messed up and put the nodename in both sysname and nodename. 320# are messed up and put the nodename in both sysname and nodename.
304 i[34]86:DYNIX/ptx:4*:*) 321 i[34]86:DYNIX/ptx:4*:*)
@@ -312,13 +329,13 @@ EOF
312 fi 329 fi
313 exit 0 ;; 330 exit 0 ;;
314 i[34]86:*:3.2:*) 331 i[34]86:*:3.2:*)
315 if test -f /usr/options/cb.name; then 332 if /bin/uname -X 2>/dev/null >/dev/null ; then
316 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
317 echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL
318 elif /bin/uname -X 2>/dev/null >/dev/null ; then
319 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` 333 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
320 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 334 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
321 echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL 335 echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL
336 elif test -f /usr/options/cb.name; then
337 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
338 echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL
322 else 339 else
323 echo ${UNAME_MACHINE}-unknown-sysv32 340 echo ${UNAME_MACHINE}-unknown-sysv32
324 fi 341 fi