* From Franz Sirl.

* config.guess (powerpc*-*-linux): Handle glibc2 beta release
        found on RedHat Linux systems.

From-SVN: r16766
This commit is contained in:
Jeffrey A Law 1997-11-26 23:07:52 +00:00 committed by Jeff Law
parent 8ef1b93db4
commit 9a8c1559d1
2 changed files with 36 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Wed Nov 26 16:08:50 1997 Jeffrey A Law (law@cygnus.com)
* From Franz Sirl.
* config.guess (powerpc*-*-linux): Handle glibc2 beta release
found on RedHat Linux systems.
Fri Nov 21 09:51:01 1997 Jeffrey A Law (law@cygnus.com)
* config.guess (alpha stuff): Merge with FSF to avoid incorrect

31
config.guess vendored
View File

@ -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