summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-24 16:10:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-24 16:10:19 +0000
commitf37ed732e853125687dda3c4e211b8f47b90d74e (patch)
treed4fc16ca99d92ff359d07db7067357f5d5f2e90d
parent81a15c60c009fa23687944df01942ac9abc8cabc (diff)
Slightly better regexps, pointed out by stskeeps
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7815 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure6
1 files 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`;