mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-30 11:06:36 +12:00
2001-12-12 Ben Elliston <bje@redhat.com>
* config.guess (i*86:Linux:*:*): Minor simplification: have the preprocessor emit shell assignments and just eval the output. 2001-12-12 H.J. Lu <hjl@gnu.org> * config.guess (mips:Linux:*:*): Re-work.
This commit is contained in:
parent
7bf0cf7b2b
commit
083292684f
15
ChangeLog
15
ChangeLog
@ -1,8 +1,17 @@
|
|||||||
2001-12-12 Ben Elliston <bje@redhat.com>
|
2001-12-12 Ben Elliston <bje@redhat.com>
|
||||||
|
|
||||||
* config.guess: Speed up detection of x86 Linux systems by using
|
* config.guess (i*86:Linux:*:*): Minor simplification: have the
|
||||||
just the C preprocessor rather than assembling and linking a final
|
preprocessor emit shell assignments and just eval the output.
|
||||||
executable.
|
|
||||||
|
2001-12-12 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* config.guess (mips:Linux:*:*): Re-work.
|
||||||
|
|
||||||
|
2001-12-12 Ben Elliston <bje@redhat.com>
|
||||||
|
|
||||||
|
* config.guess (i*86:Linux:*:*): Speed up detection of x86 Linux
|
||||||
|
systems by using just the C preprocessor rather than assembling
|
||||||
|
and linking a final executable.
|
||||||
|
|
||||||
2001-12-12 Jason Thorpe <thorpej@wasabisystems.com>
|
2001-12-12 Jason Thorpe <thorpej@wasabisystems.com>
|
||||||
|
|
||||||
|
30
config.guess
vendored
30
config.guess
vendored
@ -765,10 +765,21 @@ EOF
|
|||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
mips:Linux:*:*)
|
mips:Linux:*:*)
|
||||||
case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
|
eval $set_cc_for_build
|
||||||
big) echo mips-unknown-linux-gnu && exit 0 ;;
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
little) echo mipsel-unknown-linux-gnu && exit 0 ;;
|
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
||||||
esac
|
CPU=mipsel
|
||||||
|
#else
|
||||||
|
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
||||||
|
CPU=mips
|
||||||
|
#else
|
||||||
|
CPU=
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
EOF
|
||||||
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
||||||
|
rm -f $dummy.c
|
||||||
|
test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
|
||||||
;;
|
;;
|
||||||
ppc:Linux:*:*)
|
ppc:Linux:*:*)
|
||||||
echo powerpc-unknown-linux-gnu
|
echo powerpc-unknown-linux-gnu
|
||||||
@ -846,19 +857,20 @@ EOF
|
|||||||
#ifdef __ELF__
|
#ifdef __ELF__
|
||||||
# ifdef __GLIBC__
|
# ifdef __GLIBC__
|
||||||
# if __GLIBC__ >= 2
|
# if __GLIBC__ >= 2
|
||||||
gnu
|
LIBC=gnu
|
||||||
# else
|
# else
|
||||||
gnulibc1
|
LIBC=gnulibc1
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
gnulibc1
|
LIBC=gnulibc1
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
gnuaout
|
LIBC=gnuaout
|
||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
libc=`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^gnu` && test -n $libc && rm -f $dummy.c && echo "${UNAME_MACHINE}-pc-linux-$libc" && exit 0
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
||||||
rm -f $dummy.c
|
rm -f $dummy.c
|
||||||
|
test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
|
||||||
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
||||||
;;
|
;;
|
||||||
i*86:DYNIX/ptx:4*:*)
|
i*86:DYNIX/ptx:4*:*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user