From b4d6e0bf2a99c27c5658c6b2c34b03eb73db2ba4 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 22 Jan 2013 10:52:56 +0000 Subject: Fix OpenSSL detection on distributions which modify the version number. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') 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} = ""; -- cgit v1.2.3