diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-11-26 23:54:57 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-11-26 23:54:57 +0000 |
commit | cdd752e638a5a53a48e07f2817e573e5aafb9648 (patch) | |
tree | 7666e9849a5ea3a7db1010df6188b818ea845184 /config.guess | |
parent | 3b2b21b8966b65266b48a979f1f5c9225adb11c9 (diff) | |
download | gcc-cdd752e638a5a53a48e07f2817e573e5aafb9648.tar.gz |
* config.guess (alpha stuff): Merge with FSF to avoid incorrect
guesses.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16770 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config.guess')
-rwxr-xr-x | config.guess | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/config.guess b/config.guess index 413ed41c0f5..34d431b9183 100755 --- a/config.guess +++ b/config.guess @@ -507,7 +507,36 @@ EOF i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; + elf32ppc) + # Determine Lib Version + cat >dummy.c <<EOF +#include <features.h> +#if defined(__GLIBC__) +extern char __libc_version[]; +extern char __libc_release[]; +#endif +main(argc, argv) + int argc; + char *argv[]; +{ +#if defined(__GLIBC__) + printf("%s %s\n", __libc_version, __libc_release); +#else + printf("unkown\n"); +#endif + return 0; +} +EOF + LIBC="" + ${CC-cc} dummy.c -o dummy 2>/dev/null + if test "$?" = 0 ; then + ./dummy | grep 1\.99 > /dev/null + if test "$?" = 0 ; then + LIBC="libc1" + fi + fi + rm -f dummy.c dummy + echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;; esac if test "${UNAME_MACHINE}" = "alpha" ; then |