patch-config_guess 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. --- cryptsetup-1.1.0.orig/config.guess 2009-06-30 10:31:47.000000000 +0200
  2. +++ cryptsetup-1.1.0/config.guess 2010-02-14 18:24:56.000000000 +0100
  3. @@ -1,10 +1,10 @@
  4. #! /bin/sh
  5. # Attempt to guess a canonical system name.
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  7. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  8. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  9. # Free Software Foundation, Inc.
  10. -timestamp='2008-09-28'
  11. +timestamp='2009-06-10'
  12. # This file is free software; you can redistribute it and/or modify it
  13. # under the terms of the GNU General Public License as published by
  14. @@ -139,23 +139,6 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` |
  15. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  16. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  17. -if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
  18. - eval $set_cc_for_build
  19. - cat << EOF > $dummy.c
  20. - #include <features.h>
  21. - #ifdef __UCLIBC__
  22. - # ifdef __UCLIBC_CONFIG_VERSION__
  23. - LIBC=uclibc __UCLIBC_CONFIG_VERSION__
  24. - # else
  25. - LIBC=uclibc
  26. - # endif
  27. - #else
  28. - LIBC=gnu
  29. - #endif
  30. -EOF
  31. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
  32. -fi
  33. -
  34. # Note: order is significant - the case branches are not exclusive.
  35. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  36. @@ -187,7 +170,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  37. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  38. eval $set_cc_for_build
  39. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  40. - | grep __ELF__ >/dev/null
  41. + | grep -q __ELF__
  42. then
  43. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  44. # Return netbsd for either. FIX?
  45. @@ -341,6 +324,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  46. case `/usr/bin/uname -p` in
  47. sparc) echo sparc-icl-nx7; exit ;;
  48. esac ;;
  49. + s390x:SunOS:*:*)
  50. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  51. + exit ;;
  52. sun4H:SunOS:5.*:*)
  53. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  54. exit ;;
  55. @@ -348,7 +334,20 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  56. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  57. exit ;;
  58. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  59. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  60. + eval $set_cc_for_build
  61. + SUN_ARCH="i386"
  62. + # If there is a compiler, see if it is configured for 64-bit objects.
  63. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  64. + # This test works for both compilers.
  65. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  66. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  67. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  68. + grep IS_64BIT_ARCH >/dev/null
  69. + then
  70. + SUN_ARCH="x86_64"
  71. + fi
  72. + fi
  73. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  74. exit ;;
  75. sun4*:SunOS:6*:*)
  76. # According to config.sub, this is the proper way to canonicalize
  77. @@ -657,7 +656,7 @@ EOF
  78. # => hppa64-hp-hpux11.23
  79. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  80. - grep __LP64__ >/dev/null
  81. + grep -q __LP64__
  82. then
  83. HP_ARCH="hppa2.0w"
  84. else
  85. @@ -823,6 +822,9 @@ EOF
  86. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  87. echo i${UNAME_MACHINE}-pc-mks
  88. exit ;;
  89. + 8664:Windows_NT:*)
  90. + echo x86_64-pc-mks
  91. + exit ;;
  92. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  93. # How do we know it's Interix rather than the generic POSIX subsystem?
  94. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  95. @@ -857,66 +859,43 @@ EOF
  96. if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  97. | grep -q __ARM_EABI__
  98. then
  99. - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  100. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  101. else
  102. - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
  103. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  104. fi
  105. exit ;;
  106. avr32*:Linux:*:*)
  107. - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  108. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  109. exit ;;
  110. cris:Linux:*:*)
  111. - echo cris-axis-linux-${LIBC}
  112. + echo cris-axis-linux-gnu
  113. exit ;;
  114. crisv32:Linux:*:*)
  115. - echo crisv32-axis-linux-${LIBC}
  116. + echo crisv32-axis-linux-gnu
  117. exit ;;
  118. frv:Linux:*:*)
  119. - echo frv-unknown-linux-${LIBC}
  120. + echo frv-unknown-linux-gnu
  121. exit ;;
  122. ia64:Linux:*:*)
  123. - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  124. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  125. exit ;;
  126. m32r*:Linux:*:*)
  127. - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  128. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  129. exit ;;
  130. m68*:Linux:*:*)
  131. - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  132. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  133. exit ;;
  134. - mips:Linux:*:*)
  135. - eval $set_cc_for_build
  136. - sed 's/^ //' << EOF >$dummy.c
  137. - #undef CPU
  138. - #undef mips
  139. - #undef mipsel
  140. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  141. - CPU=mipsel
  142. - #else
  143. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  144. - CPU=mips
  145. - #else
  146. - CPU=
  147. - #endif
  148. - #endif
  149. -EOF
  150. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  151. - /^CPU/{
  152. - s: ::g
  153. - p
  154. - }'`"
  155. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  156. - ;;
  157. - mips64:Linux:*:*)
  158. + mips:Linux:*:* | mips64:Linux:*:*)
  159. eval $set_cc_for_build
  160. sed 's/^ //' << EOF >$dummy.c
  161. #undef CPU
  162. - #undef mips64
  163. - #undef mips64el
  164. + #undef ${UNAME_MACHINE}
  165. + #undef ${UNAME_MACHINE}el
  166. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  167. - CPU=mips64el
  168. + CPU=${UNAME_MACHINE}el
  169. #else
  170. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  171. - CPU=mips64
  172. + CPU=${UNAME_MACHINE}
  173. #else
  174. CPU=
  175. #endif
  176. @@ -927,16 +906,16 @@ EOF
  177. s: ::g
  178. p
  179. }'`"
  180. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  181. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  182. ;;
  183. or32:Linux:*:*)
  184. - echo or32-unknown-linux-${LIBC}
  185. + echo or32-unknown-linux-gnu
  186. exit ;;
  187. ppc:Linux:*:*)
  188. - echo powerpc-unknown-linux-${LIBC}
  189. + echo powerpc-unknown-linux-gnu
  190. exit ;;
  191. ppc64:Linux:*:*)
  192. - echo powerpc64-unknown-linux-${LIBC}
  193. + echo powerpc64-unknown-linux-gnu
  194. exit ;;
  195. alpha:Linux:*:*)
  196. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  197. @@ -948,9 +927,9 @@ EOF
  198. EV67) UNAME_MACHINE=alphaev67 ;;
  199. EV68*) UNAME_MACHINE=alphaev68 ;;
  200. esac
  201. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  202. - if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
  203. - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  204. + objdump --private-headers /bin/sh | grep -q ld.so.1
  205. + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  206. + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  207. exit ;;
  208. padre:Linux:*:*)
  209. echo sparc-unknown-linux-gnu
  210. @@ -958,34 +937,34 @@ EOF
  211. parisc:Linux:*:* | hppa:Linux:*:*)
  212. # Look for CPU level
  213. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  214. - PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
  215. - PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
  216. - *) echo hppa-unknown-linux-${LIBC} ;;
  217. + PA7*) echo hppa1.1-unknown-linux-gnu ;;
  218. + PA8*) echo hppa2.0-unknown-linux-gnu ;;
  219. + *) echo hppa-unknown-linux-gnu ;;
  220. esac
  221. exit ;;
  222. parisc64:Linux:*:* | hppa64:Linux:*:*)
  223. - echo hppa64-unknown-linux-${LIBC}
  224. + echo hppa64-unknown-linux-gnu
  225. exit ;;
  226. s390:Linux:*:* | s390x:Linux:*:*)
  227. echo ${UNAME_MACHINE}-ibm-linux
  228. exit ;;
  229. sh64*:Linux:*:*)
  230. - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  231. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  232. exit ;;
  233. sh*:Linux:*:*)
  234. - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  235. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  236. exit ;;
  237. sparc:Linux:*:* | sparc64:Linux:*:*)
  238. - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  239. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  240. exit ;;
  241. vax:Linux:*:*)
  242. - echo ${UNAME_MACHINE}-dec-linux-${LIBC}
  243. + echo ${UNAME_MACHINE}-dec-linux-gnu
  244. exit ;;
  245. x86_64:Linux:*:*)
  246. - echo x86_64-unknown-linux-${LIBC}
  247. + echo x86_64-unknown-linux-gnu
  248. exit ;;
  249. xtensa*:Linux:*:*)
  250. - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  251. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  252. exit ;;
  253. i*86:Linux:*:*)
  254. # The BFD linker knows what the default object file format is, so
  255. @@ -1000,19 +979,9 @@ EOF
  256. p'`
  257. case "$ld_supported_targets" in
  258. elf32-i386)
  259. - TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
  260. + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  261. ;;
  262. - a.out-i386-linux)
  263. - echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
  264. - exit ;;
  265. - "")
  266. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  267. - # one that does not give us useful --help.
  268. - echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
  269. - exit ;;
  270. esac
  271. - # This should get integrated into the C code below, but now we hack
  272. - if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
  273. # Determine whether the default compiler is a.out or elf
  274. eval $set_cc_for_build
  275. sed 's/^ //' << EOF >$dummy.c
  276. @@ -1077,7 +1046,7 @@ EOF
  277. i*86:syllable:*:*)
  278. echo ${UNAME_MACHINE}-pc-syllable
  279. exit ;;
  280. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  281. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  282. echo i386-unknown-lynxos${UNAME_RELEASE}
  283. exit ;;
  284. i*86:*DOS:*:*)
  285. @@ -1121,8 +1090,11 @@ EOF
  286. pc:*:*:*)
  287. # Left here for compatibility:
  288. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  289. - # the processor, so we play safe by assuming i386.
  290. - echo i386-pc-msdosdjgpp
  291. + # the processor, so we play safe by assuming i586.
  292. + # Note: whatever this is, it MUST be the same as what config.sub
  293. + # prints for the "djgpp" host, or else GDB configury will decide that
  294. + # this is a cross-build.
  295. + echo i586-pc-msdosdjgpp
  296. exit ;;
  297. Intel:Mach:3*:*)
  298. echo i386-pc-mach3
  299. @@ -1160,6 +1132,16 @@ EOF
  300. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  301. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  302. && { echo i486-ncr-sysv4; exit; } ;;
  303. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  304. + OS_REL='.3'
  305. + test -r /etc/.relid \
  306. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  307. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  308. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  309. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  310. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  311. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  312. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  313. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  314. echo m68k-unknown-lynxos${UNAME_RELEASE}
  315. exit ;;
  316. @@ -1172,7 +1154,7 @@ EOF
  317. rs6000:LynxOS:2.*:*)
  318. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  319. exit ;;
  320. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  321. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  322. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  323. exit ;;
  324. SM[BE]S:UNIX_SV:*:*)
  325. @@ -1346,6 +1328,9 @@ EOF
  326. i*86:rdos:*:*)
  327. echo ${UNAME_MACHINE}-pc-rdos
  328. exit ;;
  329. + i*86:AROS:*:*)
  330. + echo ${UNAME_MACHINE}-pc-aros
  331. + exit ;;
  332. esac
  333. #echo '(No uname command or uname output not recognized.)' 1>&2