summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-01-22 10:52:56 +0000
committerPeter Powell <petpow@saberuk.com>2013-01-22 10:52:56 +0000
commitb4d6e0bf2a99c27c5658c6b2c34b03eb73db2ba4 (patch)
tree99e2cbc24c3699a8ce53168df665f008bd737e56 /configure
parenta76167642ddfce2cd77798b519272035c55b15f9 (diff)
Fix OpenSSL detection on distributions which modify the version number.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index d18b02418..8f9f20350 100755
--- 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} = "";