summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-05 12:21:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-05 12:21:19 +0000
commit6edfe13e49a4dc49fb349f47c9dfff1c58d6e96f (patch)
tree639e37cc23785b2dbef154a07d185bbe037e377e /configure
parent6d8f6bf5f6c8f8e747cb4ea4fde8a4fb0b18d4d1 (diff)
Better check for kernel build version and libc version for epoll availability.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7657 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index ed80e9c41..5c51f2e96 100755
--- a/configure
+++ b/configure
@@ -478,10 +478,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;