diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-27 14:50:53 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-27 14:50:53 +0000 |
commit | 2e4f3512c9414793c714748aec7d676d33e18e2c (patch) | |
tree | d36dcc24bca1649fe5b0265e815e4482b66b68b8 | |
parent | 6a64a69fbc56b97f6285fbaad9f30fe58f211a88 (diff) |
Detect openssl on freebsd with the openssl binary, so we can find the base version as well as the ports version
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9589 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-x | configure | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -239,7 +239,16 @@ if (defined $opt_library_dir) $config{LIBRARY_DIR} = $opt_library_dir; } chomp($config{HAS_GNUTLS} = `libgnutls-config --version 2>/dev/null | cut -c 1,2,3`); # GNUTLS Version. -chomp($config{HAS_OPENSSL} = `pkg-config --modversion openssl 2>/dev/null`); # Openssl version + +if ($^O eq "freebsd") +{ + chomp($config{HAS_OPENSSL} = `openssl version | cut -d ' ' -f 2`); # OpenSSL version, freebsd specific +} +else +{ + chomp($config{HAS_OPENSSL} = `pkg-config --modversion openssl 2>/dev/null`); # Openssl version, others +} + chomp(our $gnutls_ver = $config{HAS_GNUTLS}); chomp(our $openssl_ver = $config{HAS_OPENSSL}); $config{USE_GNUTLS} = "n"; |