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: Speed up detection of x86 Linux systems by using just the C preprocessor rather than assembling and linking a final executable.
This commit is contained in:
parent
d13007a85c
commit
7bf0cf7b2b
@ -1,3 +1,9 @@
|
|||||||
|
2001-12-12 Ben Elliston <bje@redhat.com>
|
||||||
|
|
||||||
|
* config.guess: 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>
|
||||||
|
|
||||||
* config.guess: Simplify assignment of machine for NetBSD targets,
|
* config.guess: Simplify assignment of machine for NetBSD targets,
|
||||||
|
42
config.guess
vendored
42
config.guess
vendored
@ -841,32 +841,24 @@ EOF
|
|||||||
esac
|
esac
|
||||||
# Determine whether the default compiler is a.out or elf
|
# Determine whether the default compiler is a.out or elf
|
||||||
eval $set_cc_for_build
|
eval $set_cc_for_build
|
||||||
cat >$dummy.c <<EOF
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
#include <features.h>
|
#include <features.h>
|
||||||
#ifdef __cplusplus
|
#ifdef __ELF__
|
||||||
#include <stdio.h> /* for printf() prototype */
|
# ifdef __GLIBC__
|
||||||
int main (int argc, char *argv[]) {
|
# if __GLIBC__ >= 2
|
||||||
#else
|
gnu
|
||||||
int main (argc, argv) int argc; char *argv[]; {
|
# else
|
||||||
#endif
|
gnulibc1
|
||||||
#ifdef __ELF__
|
# endif
|
||||||
# ifdef __GLIBC__
|
# else
|
||||||
# if __GLIBC__ >= 2
|
gnulibc1
|
||||||
printf ("%s-pc-linux-gnu\n", argv[1]);
|
# endif
|
||||||
# else
|
#else
|
||||||
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
gnuaout
|
||||||
# endif
|
#endif
|
||||||
# else
|
|
||||||
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
printf ("%s-pc-linux-gnuaout\n", argv[1]);
|
|
||||||
#endif
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
|
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
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c
|
||||||
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