From: brain Date: Sun, 5 Aug 2007 12:21:19 +0000 (+0000) Subject: Better check for kernel build version and libc version for epoll availability. X-Git-Tag: v2.0.23~4833 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=6edfe13e49a4dc49fb349f47c9dfff1c58d6e96f;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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;