X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=configure;h=0b27e2f17fdb8a668bd4446f0a06c4aefaa526e4;hb=bb35a0fa9cbebe51fa636f707c12ca4a7033dd9a;hp=f29f44b7ac164da5e93c47e27609fd9d94999ad0;hpb=ea47684780e5c2e50eb14cb6f8345ae4df1f4f25;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index f29f44b7a..0b27e2f17 100755 --- a/configure +++ b/configure @@ -467,10 +467,16 @@ if ($has_epoll) { { # Suggestion from nenolod, weed out odd systems which have glibc built # against 2.4 kernels (ick) - + my $kernel_arch = `uname -p`; + chomp($kernel_arch); $libcv = 0.0; $kernelv = 0.0; - open (FH,"/lib/libc.so.6|") or $has_epoll = 0; + if ($kernel_arch =~ /x86_64/) { + open (FH,"/lib64/libc.so.6|") or $has_epoll = 0; + } + else { + open (FH,"/lib/libc.so.6|") or $has_epoll = 0; + } if ($has_epoll) { while (chomp($line = )) @@ -478,10 +484,15 @@ if ($has_epoll) { if ($line =~ /GNU C Library .* version (.*?) /) { $libcv = $1; + $libcv =~ /([0-9\.\-])+/; + $libcv = $1; } elsif ($line =~ /Compiled on a Linux (.*?\..*?)\.* system/) { $kernelv = $1; + # Fix for some retarded libc builds, strip off >> and << etc. + $kernelv =~ /([0-9\.\-])+/; + $kernelv = $1; } } close FH; @@ -1324,11 +1335,11 @@ EOM if ($config{IS_DARWIN} eq "YES") { print FH <