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.
This commit is contained in:
Peter Rosin 2011-05-25 10:55:41 +02:00 committed by Nick Mathewson
parent 86090ee198
commit 07c41bead2

View File

@ -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)