Dan Fandrich:

Here's a stab at a consolidation of the SSL detection heuristics into
configure. Source files aren't changed by this patch, except for setup.h and
the various config*.h files.  Within the configure script, OPENSSL_ENABLED is
used to determine if SSL is being used or not, and outside configure,
USE_SSLEAY means the same thing; this could be even further unified some day.

Now, when SSL is not detected, configure skips the various checks that are
dependent on SSL, speeding up the configure process and avoiding complications
with cross compiles.  I also updated all the architecture- specific config
files I could see, but I couldn't test them.
This commit is contained in:
Daniel Stenberg
2004-12-11 18:47:22 +00:00
parent 3ca4509ae9
commit df3ca59116
11 changed files with 93 additions and 81 deletions

View File

@@ -123,8 +123,11 @@
/* OpenSSL section starts here */
/* Define if you have a working OpenSSL installation */
#undef OPENSSL_ENABLED
#ifdef OPENSSL_ENABLED
#undef USE_SSLEAY
#ifdef USE_SSLEAY
/* if OpenSSL is in use */
#define USE_OPENSSL 1
/* Define if you have the crypto library (-lcrypto). */
#define HAVE_LIBCRYPTO 1