summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChip Salzenberg <chip@pobox.com>1999-04-13 04:30:57 +0000
committerTodd Rinaldo <toddr@cpanel.net>2019-10-19 07:03:08 -0500
commitf22e752ed9ec734a151cca2889a792f9743b92d1 (patch)
tree695db56a5b9de30a1bf461bc457c11f01de429a7
parent73caa5d605027d10651feb53e1c3da6d0f25c431 (diff)
downloadperl-f22e752ed9ec734a151cca2889a792f9743b92d1.tar.gz
Fix check for glibc, so it'll work with 2.1.
(back-formation from 5.006-to-be) p4raw-id: //depot/maint-5.004/perl@3250
-rwxr-xr-xConfigure12
1 files changed, 8 insertions, 4 deletions
diff --git a/Configure b/Configure
index fa7de06535..63c33e9d21 100755
--- a/Configure
+++ b/Configure
@@ -3886,14 +3886,18 @@ $rm -f try try.* core
echo " "
echo "Checking for GNU C Library..." >&4
cat >gnulibc.c <<EOM
-int
-main()
+#include <stdio.h>
+int main()
{
- return __libc_main();
+#ifdef __GLIBC__
+ exit(0);
+#else
+ exit(1);
+#endif
}
EOM
if $cc $ccflags $ldflags -o gnulibc gnulibc.c $libs >/dev/null 2>&1 && \
- ./gnulibc | $contains '^GNU C Library' >/dev/null 2>&1; then
+ ./gnulibc ; then
val="$define"
echo "You are using the GNU C Library"
else