Add --disable-ssl configure option

pull/128/merge
Nils Maier 2013-09-20 22:40:36 +02:00
parent 38bdea4e06
commit 7cb69c4d9e
1 changed files with 11 additions and 0 deletions

View File

@ -54,6 +54,7 @@ ARIA2_ARG_WITHOUT([libz])
ARIA2_ARG_WITH([tcmalloc])
ARIA2_ARG_WITH([jemalloc])
ARIA2_ARG_DISABLE([ssl])
ARIA2_ARG_DISABLE([bittorrent])
ARIA2_ARG_DISABLE([metalink])
ARIA2_ARG_DISABLE([epoll])
@ -311,6 +312,15 @@ case "$host" in
esac
if test "x$enable_ssl" != "xyes"; then
with_appletls=no
with_wintls=no
with_libnettle=no
with_libgcrypt=no
with_gnutls=no
with_openssl=no
fi
if test "x$with_appletls" = "xyes"; then
AC_MSG_CHECKING([whether to enable Mac OS X native SSL/TLS])
if test "x$have_osx" = "xyes"; then
@ -468,6 +478,7 @@ if test "x$have_appletls" = "xyes" || test "x$have_libgnutls" = "xyes" || test "
AC_DEFINE([ENABLE_SSL], [1], [Define to 1 if ssl support is enabled.])
AM_CONDITIONAL([ENABLE_SSL], true)
else
have_ssl="no"
AM_CONDITIONAL([ENABLE_SSL], false)
fi