]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix OpenSSL detection on distributions which modify the version number.
authorPeter Powell <petpow@saberuk.com>
Tue, 22 Jan 2013 10:52:56 +0000 (10:52 +0000)
committerPeter Powell <petpow@saberuk.com>
Tue, 22 Jan 2013 10:52:56 +0000 (10:52 +0000)
configure

index d18b02418864c5c16ab90b91fd9b0a2d17486b55..8f9f203505f6a4bbab2e26c1172f54cb89d60938 100755 (executable)
--- a/configure
+++ b/configure
@@ -273,7 +273,7 @@ $exec = $config{CC} . " -dumpversion | cut -c 3";
 chomp($config{GCCMINOR}                = `$exec`);
 $config{MAXBUF}                        = "512";                                # Max buffer size
 
-if ($config{HAS_OPENSSL} =~ /^([-[:digit:].]+)([a-z])?(\-[a-z][0-9])?$/) {
+if ($config{HAS_OPENSSL} =~ /^([-[:digit:].]+)(?:[a-z])?(?:\-[a-z][0-9])?/) {
        $config{HAS_OPENSSL} = $1;
 } else {
        $config{HAS_OPENSSL} = "";