mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- unbound-event.h is installed if you configure --enable-event-api.
git-svn-id: file:///svn/unbound/trunk@3047 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
5c1b1c0fc9
commit
9a1e15776f
3 changed files with 36 additions and 4 deletions
23
configure
vendored
23
configure
vendored
|
|
@ -821,6 +821,7 @@ with_ssl
|
|||
enable_sha2
|
||||
enable_gost
|
||||
enable_ecdsa
|
||||
enable_event_api
|
||||
with_libevent
|
||||
with_libexpat
|
||||
enable_static_exe
|
||||
|
|
@ -1475,6 +1476,8 @@ Optional Features:
|
|||
--disable-sha2 Disable SHA256 and SHA512 RRSIG support
|
||||
--disable-gost Disable GOST support
|
||||
--disable-ecdsa Disable ECDSA support
|
||||
--enable-event-api Enable (experimental) libevent-based libunbound API
|
||||
installed to unbound-event.h
|
||||
--enable-static-exe enable to compile executables statically against
|
||||
(event) libs, for debug purposes
|
||||
--enable-lock-checks enable to check lock and unlock calls, for debug
|
||||
|
|
@ -17145,6 +17148,20 @@ _ACEOF
|
|||
;;
|
||||
esac
|
||||
|
||||
# Check whether --enable-event-api was given.
|
||||
if test "${enable_event_api+set}" = set; then :
|
||||
enableval=$enable_event_api;
|
||||
fi
|
||||
|
||||
use_unbound_event="no"
|
||||
case "$enable_event_api" in
|
||||
yes)
|
||||
use_unbound_event="yes"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# check for libevent
|
||||
|
||||
# Check whether --with-libevent was given.
|
||||
|
|
@ -17475,10 +17492,12 @@ done
|
|||
if test -n "$BAK_LDFLAGS_SET"; then
|
||||
LDFLAGS="$BAK_LDFLAGS"
|
||||
fi
|
||||
UNBOUND_EVENT_INSTALL=unbound-event-install
|
||||
if test "$use_unbound_event" = "yes"; then
|
||||
UNBOUND_EVENT_INSTALL=unbound-event-install
|
||||
|
||||
UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
|
||||
UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
|
||||
|
||||
fi
|
||||
else
|
||||
|
||||
$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
|
||||
|
|
|
|||
16
configure.ac
16
configure.ac
|
|
@ -742,6 +742,16 @@ case "$enable_ecdsa" in
|
|||
;;
|
||||
esac
|
||||
|
||||
AC_ARG_ENABLE(event-api, AC_HELP_STRING([--enable-event-api], [Enable (experimental) libevent-based libunbound API installed to unbound-event.h]))
|
||||
use_unbound_event="no"
|
||||
case "$enable_event_api" in
|
||||
yes)
|
||||
use_unbound_event="yes"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# check for libevent
|
||||
AC_ARG_WITH(libevent, AC_HELP_STRING([--with-libevent=pathname],
|
||||
[use libevent (will check /usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr or you can specify an explicit path). Slower, but allows use of large outgoing port ranges.]),
|
||||
|
|
@ -816,8 +826,10 @@ large outgoing port ranges. ])
|
|||
if test -n "$BAK_LDFLAGS_SET"; then
|
||||
LDFLAGS="$BAK_LDFLAGS"
|
||||
fi
|
||||
AC_SUBST(UNBOUND_EVENT_INSTALL, [unbound-event-install])
|
||||
AC_SUBST(UNBOUND_EVENT_UNINSTALL, [unbound-event-uninstall])
|
||||
if test "$use_unbound_event" = "yes"; then
|
||||
AC_SUBST(UNBOUND_EVENT_INSTALL, [unbound-event-install])
|
||||
AC_SUBST(UNBOUND_EVENT_UNINSTALL, [unbound-event-uninstall])
|
||||
fi
|
||||
else
|
||||
AC_DEFINE(USE_MINI_EVENT, 1, [Define if you want to use internal select based events])
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
24 January 2014: Wouter
|
||||
- Change unbound-event.h to use void* buffer, length idiom.
|
||||
- iana portlist updated.
|
||||
- unbound-event.h is installed if you configure --enable-event-api.
|
||||
|
||||
21 January 2014: Wouter
|
||||
- Fix #547: no trustanchor written if filesystem full, fclose checked.
|
||||
|
|
|
|||
Loading…
Reference in a new issue