From f37ed732e853125687dda3c4e211b8f47b90d74e Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 24 Aug 2007 16:10:19 +0000 Subject: [PATCH] Slightly better regexps, pointed out by stskeeps git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7815 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 8bcfcbe64..57de80ff0 100755 --- a/configure +++ b/configure @@ -484,14 +484,14 @@ if ($has_epoll) { if ($line =~ /GNU C Library .* version (.*?) /) { $libcv = $1; - $libcv =~ /([0-9\.\-])+/; + $libcv =~ /(\d+\.\d+)/; $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 =~ /(\d+\.\d+)/; $kernelv = $1; } } @@ -512,6 +512,8 @@ if ($has_epoll) { print "yes\n" if $has_epoll == 1; print "no\n" if $has_epoll == 0; +exit; + printf "Checking if Solaris I/O completion ports are available... "; $has_ports = 0; my $system = `uname -s`; -- 2.39.5