summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-08-17 12:53:50 -0400
committerNick Mathewson <nickm@torproject.org>2011-08-17 12:53:50 -0400
commit893291936643514b49ece77d5aecab20e52e2200 (patch)
tree2d70886b6ba69ec8a1dcbe8aad2f29471ffd39c4
parent06be6105e45eca8ce3ad24e58652ad3faa083c92 (diff)
downloadtor-893291936643514b49ece77d5aecab20e52e2200.tar.gz
tor-893291936643514b49ece77d5aecab20e52e2200.zip
Bufferevents now requires Libevent 2.0.13-stable.
(Earlier Libevent versions have bufferevent bugs that affect us, and are missing some APIs that it would be handy to use.)
-rw-r--r--changes/require-le-2.0.137
-rw-r--r--configure.in4
2 files changed, 9 insertions, 2 deletions
diff --git a/changes/require-le-2.0.13 b/changes/require-le-2.0.13
new file mode 100644
index 0000000000..0b9b2f93a3
--- /dev/null
+++ b/changes/require-le-2.0.13
@@ -0,0 +1,7 @@
+ o Build changes:
+ - Building Tor with bufferevent support now requires Libevent
+ 2.0.13-stable or later. Previous versions of Libevent had bugs
+ in SSL-related bufferevents and related issues that would make
+ Tor work badly with bufferevents. Requiring 2.0.13-stable also
+ means that Tor with bufferevents can take advantage of Libevent
+ APIs introduced after 2.0.8-rc.
diff --git a/configure.in b/configure.in
index 6437183550..4a89df6e04 100644
--- a/configure.in
+++ b/configure.in
@@ -438,7 +438,7 @@ int x = 1;
AC_MSG_CHECKING([whether Libevent is new enough for bufferevents])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#include <event2/event.h>
-#if !defined(LIBEVENT_VERSION_NUMBER) || LIBEVENT_VERSION_NUMBER < 0x02000800
+#if !defined(LIBEVENT_VERSION_NUMBER) || LIBEVENT_VERSION_NUMBER < 0x02000d00
#error
int x = y(zz);
#else
@@ -446,7 +446,7 @@ int x = 1;
#endif
])], [ AC_MSG_RESULT([yes]) ],
[ AC_MSG_RESULT([no])
- AC_MSG_ERROR([Libevent does not seem new enough to support bufferevents. We require 2.0.8-rc or later]) ] )
+ AC_MSG_ERROR([Libevent does not seem new enough to support bufferevents. We require 2.0.13-stable or later]) ] )
fi
fi
fi