diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-21 20:08:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-21 20:08:42 +0000 |
commit | 5e3bfa266bd99ac15fd621c6e14d12787ba22f6e (patch) | |
tree | e74649e974a1af2cafc143006fb05cae7a749156 | |
parent | 7dd31e2b7a80cbac7fe08c2971cf2c690cc8efe8 (diff) |
Patch submitted by Dagonet that improves detection of gnutls and openssl
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10211 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-x | configure | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -667,8 +667,13 @@ $config{HAS_KQUEUE} = $has_kqueue; printf "Checking for libgnutls... "; if (defined($config{HAS_GNUTLS}) && (($config{HAS_GNUTLS}) || ($config{HAS_GNUTLS} eq "y"))) { - print "yes\n"; - $config{HAS_GNUTLS} = "y"; + if (defined($gnutls_ver) && ($gnutls_ver ne "")) { + print "yes\n"; + $config{HAS_GNUTLS} = "y"; + } else { + print "no\n"; + $config{HAS_GNUTLS} = "n"; + } } else { print "no\n"; $config{HAS_GNUTLS} = "n"; @@ -676,8 +681,13 @@ if (defined($config{HAS_GNUTLS}) && (($config{HAS_GNUTLS}) || ($config{HAS_GNUTL printf "Checking for openssl... "; if (defined($config{HAS_OPENSSL}) && (($config{HAS_OPENSSL}) || ($config{HAS_OPENSSL} eq "y"))) { - print "yes\n"; - $config{HAS_OPENSSL} = "y"; + if (defined($openssl_ver) && ($openssl_ver ne "")) { + print "yes\n"; + $config{HAS_OPENSSL} = "y"; + } else { + print "no\n"; + $config{HAS_OPENSSL} = "n"; + } } else { print "no\n"; $config{HAS_OPENSSL} = "n"; |