]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix libevent linking on openbsd.
authorNick Mathewson <nickm@torproject.org>
Thu, 8 Sep 2016 14:08:29 +0000 (10:08 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 8 Sep 2016 14:09:34 +0000 (10:09 -0400)
Closes ticket 19902; bugfix on 0.2.9.1-alpha; patch from rubiate

changes/bug19902 [new file with mode: 0644]
configure.ac

diff --git a/changes/bug19902 b/changes/bug19902
new file mode 100644 (file)
index 0000000..297570e
--- /dev/null
@@ -0,0 +1,5 @@
+  o Major bugfixes (compilation, OpenBSD):
+
+    - Fix a Libevent-detection bug in our autoconf script that would
+      prevent Tor from linking successfully on OpenBSD. Patch from
+      rubiate. Fixes bug 19902; bugfix on 0.2.9.1-alpha.
index ed57757a419de7f6340278e96d4030d0a69ad22e..fc270173f34891e4087a24ab6a41ebfdc567ec75 100644 (file)
@@ -501,6 +501,8 @@ AC_CHECK_FUNCS([evutil_secure_rng_set_urandom_device_file \
                 evutil_secure_rng_add_bytes \
 ])
 
+AC_CHECK_HEADERS(event2/event.h event2/dns.h event2/bufferevent_ssl.h)
+
 LIBS="$STATIC_LIBEVENT_FLAGS $TOR_LIB_WS32 $save_LIBS"
 
 if test "$enable_static_libevent" = "yes"; then
@@ -521,7 +523,7 @@ else
          TOR_LIBEVENT_LIBS="$ac_cv_search_evdns_base_new $TOR_LIBEVENT_LIBS"
        fi
      else
-       TOR_LIBEVENT_LIBS="-levent"
+       AC_MSG_ERROR("libevent2 is required but the headers could not be found")
      fi
 fi