From: Peter Rosin Date: Wed, 25 May 2011 08:55:41 +0000 (+0200) Subject: Make the tests build when OpenSSL is not available. X-Git-Tag: release-2.0.12-stable~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07c41bead2097de223def8b6975f08a2f65e908c;p=libevent Make the tests build when OpenSSL is not available. Don't #define HAVE_OPENSSL (to zero) when OpenSSL is not available. Code written as #ifdef HAVE_OPENSSL do not expect that. --- diff --git a/configure.in b/configure.in index 5085edea..85f92c36 100644 --- a/configure.in +++ b/configure.in @@ -137,8 +137,7 @@ AC_SEARCH_LIBS([SSL_new], [ssl], [have_openssl=yes OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32" AC_DEFINE(HAVE_OPENSSL, 1, [Define if the system has openssl])], - [have_openssl=no - AC_DEFINE(HAVE_OPENSSL, 0, [Define if the system lacks openssl])], + [have_openssl=no], [-lcrypto $EV_LIB_GDI $EV_LIB_WS32]) LIBS="$save_LIBS" AC_SUBST(OPENSSL_LIBS)