Changeset 370
- Timestamp:
- Feb 8, 2016, 11:21:01 AM (5 years ago)
- Location:
- recordmydesktop/trunk/fuentes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
recordmydesktop/trunk/fuentes/config.guess
r368 r370 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 # Copyright 1992-201 3Free Software Foundation, Inc.4 5 timestamp='201 3-06-10'3 # Copyright 1992-2015 Free Software Foundation, Inc. 4 5 timestamp='2015-08-20' 6 6 7 7 # This file is free software; you can redistribute it and/or modify it … … 25 25 # of the GNU General Public License, version 3 ("GPLv3"). 26 26 # 27 # Originally written by Per Bothner .27 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. 28 28 # 29 29 # You can get the latest version of this script from: 30 30 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 31 31 # 32 # Please send patches with a ChangeLog entry to config-patches@gnu.org.32 # Please send patches to <config-patches@gnu.org>. 33 33 34 34 … … 51 51 52 52 Originally written by Per Bothner. 53 Copyright 1992-201 3Free Software Foundation, Inc.53 Copyright 1992-2015 Free Software Foundation, Inc. 54 54 55 55 This is free software; see the source for copying conditions. There is NO … … 150 150 #endif 151 151 EOF 152 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' `152 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` 153 153 ;; 154 154 esac … … 169 169 # portion of the name. We always set it to "unknown". 170 170 sysctl="sysctl -n hw.machine_arch" 171 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 172 /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 171 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ 172 /sbin/$sysctl 2>/dev/null || \ 173 /usr/sbin/$sysctl 2>/dev/null || \ 174 echo unknown)` 173 175 case "${UNAME_MACHINE_ARCH}" in 174 176 armeb) machine=armeb-unknown ;; … … 177 179 sh3eb) machine=sh-unknown ;; 178 180 sh5el) machine=sh5le-unknown ;; 181 earmv*) 182 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` 183 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` 184 machine=${arch}${endian}-unknown 185 ;; 179 186 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 180 187 esac … … 182 189 # to ELF recently, or will in the future. 183 190 case "${UNAME_MACHINE_ARCH}" in 184 arm*| i386|m68k|ns32k|sh3*|sparc|vax)191 arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax) 185 192 eval $set_cc_for_build 186 193 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ … … 198 205 ;; 199 206 esac 207 # Determine ABI tags. 208 case "${UNAME_MACHINE_ARCH}" in 209 earm*) 210 expr='s/^earmv[0-9]/-eabi/;s/eb$//' 211 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` 212 ;; 213 esac 200 214 # The OS release 201 215 # Debian GNU/NetBSD machines have a different userland, and … … 208 222 ;; 209 223 *) 210 release=`echo ${UNAME_RELEASE} |sed -e 's/[-_].*/\./'`224 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` 211 225 ;; 212 226 esac … … 214 228 # contains redundant information, the shorter form: 215 229 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 216 echo "${machine}-${os}${release} "230 echo "${machine}-${os}${release}${abi}" 217 231 exit ;; 218 232 *:Bitrig:*:*) … … 235 249 *:MirBSD:*:*) 236 250 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 251 exit ;; 252 *:Sortix:*:*) 253 echo ${UNAME_MACHINE}-unknown-sortix 237 254 exit ;; 238 255 alpha:OSF1:*:*) … … 580 597 IBM_ARCH=powerpc 581 598 fi 582 if [ -x /usr/bin/oslevel ] ; then 583 IBM_REV=`/usr/bin/oslevel` 599 if [ -x /usr/bin/lslpp ] ; then 600 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 601 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 584 602 else 585 603 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} … … 827 845 echo ${UNAME_MACHINE}-pc-mingw32 828 846 exit ;; 829 i*:MSYS*:*)847 *:MSYS*:*) 830 848 echo ${UNAME_MACHINE}-pc-msys 831 849 exit ;; … … 932 950 crisv32:Linux:*:*) 933 951 echo ${UNAME_MACHINE}-axis-linux-${LIBC} 952 exit ;; 953 e2k:Linux:*:*) 954 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 934 955 exit ;; 935 956 frv:Linux:*:*) … … 970 991 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 971 992 ;; 972 o r1k:Linux:*:*)973 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}974 exit ;; 975 or32:Linux:*:* )993 openrisc*:Linux:*:*) 994 echo or1k-unknown-linux-${LIBC} 995 exit ;; 996 or32:Linux:*:* | or1k*:Linux:*:*) 976 997 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 977 998 exit ;; … … 1021 1042 exit ;; 1022 1043 x86_64:Linux:*:*) 1023 echo ${UNAME_MACHINE}- unknown-linux-${LIBC}1044 echo ${UNAME_MACHINE}-pc-linux-${LIBC} 1024 1045 exit ;; 1025 1046 xtensa*:Linux:*:*) … … 1261 1282 UNAME_PROCESSOR=powerpc 1262 1283 fi 1263 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 1264 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1265 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 1266 grep IS_64BIT_ARCH >/dev/null 1267 then 1268 case $UNAME_PROCESSOR in 1269 i386) UNAME_PROCESSOR=x86_64 ;; 1270 powerpc) UNAME_PROCESSOR=powerpc64 ;; 1271 esac 1284 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then 1285 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 1286 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1287 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 1288 grep IS_64BIT_ARCH >/dev/null 1289 then 1290 case $UNAME_PROCESSOR in 1291 i386) UNAME_PROCESSOR=x86_64 ;; 1292 powerpc) UNAME_PROCESSOR=powerpc64 ;; 1293 esac 1294 fi 1272 1295 fi 1296 elif test "$UNAME_PROCESSOR" = i386 ; then 1297 # Avoid executing cc on OS X 10.9, as it ships with a stub 1298 # that puts up a graphical alert prompting to install 1299 # developer tools. Any system running Mac OS X 10.7 or 1300 # later (Darwin 11 and later) is required to have a 64-bit 1301 # processor. This is not true of the ARM version of Darwin 1302 # that Apple uses in portable devices. 1303 UNAME_PROCESSOR=x86_64 1273 1304 fi 1274 1305 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} … … 1362 1393 esac 1363 1394 1364 eval $set_cc_for_build1365 cat >$dummy.c <<EOF1366 #ifdef _SEQUENT_1367 # include <sys/types.h>1368 # include <sys/utsname.h>1369 #endif1370 main ()1371 {1372 #if defined (sony)1373 #if defined (MIPSEB)1374 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,1375 I don't know.... */1376 printf ("mips-sony-bsd\n"); exit (0);1377 #else1378 #include <sys/param.h>1379 printf ("m68k-sony-newsos%s\n",1380 #ifdef NEWSOS41381 "4"1382 #else1383 ""1384 #endif1385 ); exit (0);1386 #endif1387 #endif1388 1389 #if defined (__arm) && defined (__acorn) && defined (__unix)1390 printf ("arm-acorn-riscix\n"); exit (0);1391 #endif1392 1393 #if defined (hp300) && !defined (hpux)1394 printf ("m68k-hp-bsd\n"); exit (0);1395 #endif1396 1397 #if defined (NeXT)1398 #if !defined (__ARCHITECTURE__)1399 #define __ARCHITECTURE__ "m68k"1400 #endif1401 int version;1402 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;1403 if (version < 4)1404 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);1405 else1406 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);1407 exit (0);1408 #endif1409 1410 #if defined (MULTIMAX) || defined (n16)1411 #if defined (UMAXV)1412 printf ("ns32k-encore-sysv\n"); exit (0);1413 #else1414 #if defined (CMU)1415 printf ("ns32k-encore-mach\n"); exit (0);1416 #else1417 printf ("ns32k-encore-bsd\n"); exit (0);1418 #endif1419 #endif1420 #endif1421 1422 #if defined (__386BSD__)1423 printf ("i386-pc-bsd\n"); exit (0);1424 #endif1425 1426 #if defined (sequent)1427 #if defined (i386)1428 printf ("i386-sequent-dynix\n"); exit (0);1429 #endif1430 #if defined (ns32000)1431 printf ("ns32k-sequent-dynix\n"); exit (0);1432 #endif1433 #endif1434 1435 #if defined (_SEQUENT_)1436 struct utsname un;1437 1438 uname(&un);1439 1440 if (strncmp(un.version, "V2", 2) == 0) {1441 printf ("i386-sequent-ptx2\n"); exit (0);1442 }1443 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */1444 printf ("i386-sequent-ptx1\n"); exit (0);1445 }1446 printf ("i386-sequent-ptx\n"); exit (0);1447 1448 #endif1449 1450 #if defined (vax)1451 # if !defined (ultrix)1452 # include <sys/param.h>1453 # if defined (BSD)1454 # if BSD == 431455 printf ("vax-dec-bsd4.3\n"); exit (0);1456 # else1457 # if BSD == 1990061458 printf ("vax-dec-bsd4.3reno\n"); exit (0);1459 # else1460 printf ("vax-dec-bsd\n"); exit (0);1461 # endif1462 # endif1463 # else1464 printf ("vax-dec-bsd\n"); exit (0);1465 # endif1466 # else1467 printf ("vax-dec-ultrix\n"); exit (0);1468 # endif1469 #endif1470 1471 #if defined (alliant) && defined (i860)1472 printf ("i860-alliant-bsd\n"); exit (0);1473 #endif1474 1475 exit (1);1476 }1477 EOF1478 1479 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&1480 { echo "$SYSTEM_NAME"; exit; }1481 1482 # Apollos put the system type in the environment.1483 1484 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }1485 1486 # Convex versions that predate uname can use getsysinfo(1)1487 1488 if [ -x /usr/convex/getsysinfo ]1489 then1490 case `getsysinfo -f cpu_type` in1491 c1*)1492 echo c1-convex-bsd1493 exit ;;1494 c2*)1495 if getsysinfo -f scalar_acc1496 then echo c32-convex-bsd1497 else echo c2-convex-bsd1498 fi1499 exit ;;1500 c34*)1501 echo c34-convex-bsd1502 exit ;;1503 c38*)1504 echo c38-convex-bsd1505 exit ;;1506 c4*)1507 echo c4-convex-bsd1508 exit ;;1509 esac1510 fi1511 1512 1395 cat >&2 <<EOF 1513 1396 $0: unable to guess system type -
recordmydesktop/trunk/fuentes/config.sub
r368 r370 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script. 3 # Copyright 1992-201 3Free Software Foundation, Inc.4 5 timestamp='201 3-08-10'3 # Copyright 1992-2015 Free Software Foundation, Inc. 4 5 timestamp='2015-08-20' 6 6 7 7 # This file is free software; you can redistribute it and/or modify it … … 26 26 27 27 28 # Please send patches with a ChangeLog entry to config-patches@gnu.org.28 # Please send patches to <config-patches@gnu.org>. 29 29 # 30 30 # Configuration subroutine to validate and canonicalize a configuration type. … … 69 69 GNU config.sub ($timestamp) 70 70 71 Copyright 1992-201 3Free Software Foundation, Inc.71 Copyright 1992-2015 Free Software Foundation, Inc. 72 72 73 73 This is free software; see the source for copying conditions. There is NO … … 118 118 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 119 119 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 120 knetbsd*-gnu* | netbsd*-gnu* | \120 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ 121 121 kopensolaris*-gnu* | \ 122 122 storm-chaos* | os2-emx* | rtmk-nova*) … … 256 256 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ 257 257 | avr | avr32 \ 258 | ba \ 258 259 | be32 | be64 \ 259 260 | bfin \ 260 261 | c4x | c8051 | clipper \ 261 262 | d10v | d30v | dlx | dsp16xx \ 262 | e piphany \263 | fido | fr30 | frv \263 | e2k | epiphany \ 264 | fido | fr30 | frv | ft32 \ 264 265 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 265 266 | hexagon \ 266 267 | i370 | i860 | i960 | ia64 \ 267 268 | ip2k | iq2000 \ 269 | k1om \ 268 270 | le32 | le64 \ 269 271 | lm32 \ … … 283 285 | mipsisa32 | mipsisa32el \ 284 286 | mipsisa32r2 | mipsisa32r2el \ 287 | mipsisa32r6 | mipsisa32r6el \ 285 288 | mipsisa64 | mipsisa64el \ 286 289 | mipsisa64r2 | mipsisa64r2el \ 290 | mipsisa64r6 | mipsisa64r6el \ 287 291 | mipsisa64sb1 | mipsisa64sb1el \ 288 292 | mipsisa64sr71k | mipsisa64sr71kel \ … … 296 300 | nios | nios2 | nios2eb | nios2el \ 297 301 | ns16k | ns32k \ 298 | open8 \ 299 | or1k | or32 \ 302 | open8 | or1k | or1knd | or32 \ 300 303 | pdp10 | pdp11 | pj | pjl \ 301 304 | powerpc | powerpc64 | powerpc64le | powerpcle \ 302 305 | pyramid \ 306 | riscv32 | riscv64 \ 303 307 | rl78 | rx \ 304 308 | score \ 305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[ 34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \309 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 306 310 | sh64 | sh64le \ 307 311 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ … … 311 315 | ubicom32 \ 312 316 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ 317 | visium \ 313 318 | we32k \ 314 319 | x86 | xc16x | xstormy16 | xtensa \ … … 325 330 basic_machine=tic6x-unknown 326 331 ;; 327 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) 332 leon|leon[3-9]) 333 basic_machine=sparc-$basic_machine 334 ;; 335 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) 328 336 basic_machine=$basic_machine-unknown 329 337 os=-none … … 370 378 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 371 379 | avr-* | avr32-* \ 380 | ba-* \ 372 381 | be32-* | be64-* \ 373 382 | bfin-* | bs2000-* \ … … 375 384 | c8051-* | clipper-* | craynv-* | cydra-* \ 376 385 | d10v-* | d30v-* | dlx-* \ 377 | e lxsi-* \386 | e2k-* | elxsi-* \ 378 387 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 379 388 | h8300-* | h8500-* \ … … 382 391 | i*86-* | i860-* | i960-* | ia64-* \ 383 392 | ip2k-* | iq2000-* \ 393 | k1om-* \ 384 394 | le32-* | le64-* \ 385 395 | lm32-* \ … … 401 411 | mipsisa32-* | mipsisa32el-* \ 402 412 | mipsisa32r2-* | mipsisa32r2el-* \ 413 | mipsisa32r6-* | mipsisa32r6el-* \ 403 414 | mipsisa64-* | mipsisa64el-* \ 404 415 | mipsisa64r2-* | mipsisa64r2el-* \ 416 | mipsisa64r6-* | mipsisa64r6el-* \ 405 417 | mipsisa64sb1-* | mipsisa64sb1el-* \ 406 418 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ … … 414 426 | none-* | np1-* | ns16k-* | ns32k-* \ 415 427 | open8-* \ 428 | or1k*-* \ 416 429 | orion-* \ 417 430 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 418 431 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ 419 432 | pyramid-* \ 433 | riscv32-* | riscv64-* \ 420 434 | rl78-* | romp-* | rs6000-* | rx-* \ 421 435 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ … … 423 437 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 424 438 | sparclite-* \ 425 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx ?-* \439 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ 426 440 | tahoe-* \ 427 441 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ … … 431 445 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ 432 446 | vax-* \ 447 | visium-* \ 433 448 | we32k-* \ 434 449 | x86-* | x86_64-* | xc16x-* | xps100-* \ … … 506 521 basic_machine=i386-pc 507 522 os=-aros 523 ;; 524 asmjs) 525 basic_machine=asmjs-unknown 508 526 ;; 509 527 aux) … … 768 786 os=-sysv 769 787 ;; 788 leon-*|leon[3-9]-*) 789 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` 790 ;; 770 791 m68knommu) 771 792 basic_machine=m68k-unknown … … 822 843 basic_machine=powerpc-unknown 823 844 os=-morphos 845 ;; 846 moxiebox) 847 basic_machine=moxie-unknown 848 os=-moxiebox 824 849 ;; 825 850 msdos) … … 1355 1380 | -sym* | -kopensolaris* | -plan9* \ 1356 1381 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1357 | -aos* | -aros* \1382 | -aos* | -aros* | -cloudabi* | -sortix* \ 1358 1383 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1359 1384 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ … … 1368 1393 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ 1369 1394 | -linux-newlib* | -linux-musl* | -linux-uclibc* \ 1370 | -uxpv* | -beos* | -mpeix* | -udk* \1395 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ 1371 1396 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1372 1397 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ … … 1375 1400 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1376 1401 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1377 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* )1402 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) 1378 1403 # Remember, each alternative MUST END IN *, to match a version number. 1379 1404 ;; … … 1593 1618 os=-elf 1594 1619 ;; 1595 or1k-*)1596 os=-elf1597 ;;1598 1620 or32-*) 1599 1621 os=-coff
Note: See TracChangeset
for help on using the changeset viewer.