summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gnu.org>1997-08-26 09:21:29 +0000
committerRichard Kenner <kenner@gnu.org>1997-08-26 09:21:29 +0000
commitd77b066d59b9737cee0d15b4090d957c16186ab2 (patch)
tree9800ae65cc138b0f7d113a8c21b3d2c82781729a
parentc9c88cf45fc91e2b92469aeb5630b428dcd3b4f6 (diff)
downloademacs-libc-970901.tar.gz
-rwxr-xr-xconfig.guess15
1 files changed, 11 insertions, 4 deletions
diff --git a/config.guess b/config.guess
index ee2742b9e0a..1448103304d 100755
--- a/config.guess
+++ b/config.guess
@@ -506,6 +506,7 @@ EOF
ret \$31,(\$26),1
.end main
EOF
+ LIBC=""
${CC-cc} dummy.s -o dummy 2>/dev/null
if test "$?" = 0 ; then
./dummy
@@ -516,10 +517,16 @@ EOF
2)
UNAME_MACHINE="alphaev56"
;;
- esac
- fi
- rm -f dummy.s dummy
- echo ${UNAME_MACHINE}-unknown-linux-gnu ; exit 0
+ esac
+
+ objdump --private-headers dummy | \
+ grep ld.so.1 > /dev/null
+ if test "$?" = 0 ; then
+ LIBC="libc1"
+ fi
+ fi
+ rm -f dummy.s dummy
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
elif test "${UNAME_MACHINE}" = "mips" ; then
cat >dummy.c <<EOF
main(argc, argv)