Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
5dff4ae0
Commit
5dff4ae0
authored
Nov 25, 2015
by
Nick Mathewson
👁
Browse files
Attempt to make openbsd compilation happier with libevent2 installed
Fix for bug 16651; patch from "rubiate".
parent
c59c622d
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug16651
0 → 100644
View file @
5dff4ae0
o Minor bugfixes (compilation):
- Fix search for libevent libraries on OpenBSD (and similar systems
which install libevent 1 and libevent 2 in parallel). Resolves
ticket 16651. Patch from "rubiate".
configure.ac
View file @
5dff4ae0
...
...
@@ -501,9 +501,6 @@ AC_CHECK_MEMBERS([struct event.min_heap_idx], , ,
AC_CHECK_HEADERS(event2/event.h event2/dns.h event2/bufferevent_ssl.h)
LIBS="$save_LIBS"
LDFLAGS="$save_LDFLAGS"
CPPFLAGS="$save_CPPFLAGS"
AM_CONDITIONAL(USE_EXTERNAL_EVDNS, test x$ac_cv_header_event2_dns_h = xyes)
...
...
@@ -514,9 +511,25 @@ if test "$enable_static_libevent" = "yes"; then
TOR_LIBEVENT_LIBS="$TOR_LIBDIR_libevent/libevent.a $STATIC_LIBEVENT_FLAGS"
fi
else
TOR_LIBEVENT_LIBS="-levent"
if test x$ac_cv_header_event2_event_h = "xyes"; then
AC_SEARCH_LIBS(event_new, [event event_core])
AC_SEARCH_LIBS(evdns_base_new, [event event_extra])
if test $ac_cv_search_event_new != "none required"; then
TOR_LIBEVENT_LIBS="$ac_cv_search_event_new"
fi
if test $ac_cv_search_evdns_base_new != "none required"; then
TOR_LIBEVENT_LIBS="$ac_cv_search_evdns_base_new $TOR_LIBEVENT_LIBS"
fi
else
TOR_LIBEVENT_LIBS="-levent"
fi
fi
LIBS="$save_LIBS"
LDFLAGS="$save_LDFLAGS"
CPPFLAGS="$save_CPPFLAGS"
dnl This isn't the best test for Libevent 2.0.3-alpha. Once it's released,
dnl we can do much better.
if test "$enable_bufferevents" = "yes" ; then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment