diff options
author | Chip Salzenberg <chip@pobox.com> | 1999-04-13 04:30:57 +0000 |
---|---|---|
committer | Todd Rinaldo <toddr@cpanel.net> | 2019-10-19 07:03:08 -0500 |
commit | f22e752ed9ec734a151cca2889a792f9743b92d1 (patch) | |
tree | 695db56a5b9de30a1bf461bc457c11f01de429a7 | |
parent | 73caa5d605027d10651feb53e1c3da6d0f25c431 (diff) | |
download | perl-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-x | Configure | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |