summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-01-22 09:47:50 -0800
committerAttila Molnar <attilamolnar@hush.com>2013-01-22 09:47:50 -0800
commitc4c7448c68af609b63ccaec714a5082aebdeebe2 (patch)
tree99e2cbc24c3699a8ce53168df665f008bd737e56 /configure
parenta76167642ddfce2cd77798b519272035c55b15f9 (diff)
parentb4d6e0bf2a99c27c5658c6b2c34b03eb73db2ba4 (diff)
Merge pull request #407 from SaberUK/insp20+fix-openssl-detection
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} = "";