瀏覽代碼

Add --disable-ssl configure option

Nils Maier 12 年之前
父節點
當前提交
7cb69c4d9e
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      configure.ac

+ 11 - 0
configure.ac

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