fi
for dir in $withval; do
ssldir="$dir"
- if test -f "$dir/include/event.h"; then
+ if test -f "$dir/include/openssl/ssl.h"; then
found_ssl="yes";
AC_DEFINE_UNQUOTED([HAVE_SSL], [], [Define if you have the SSL libraries installed.])
CPPFLAGS="$CPPFLAGS -I$ssldir/include";
else
AC_MSG_RESULT(found in $ssldir)
HAVE_SSL=yes
- LDFLAGS="$LDFLAGS -L$ssldir/lib -lcrypto";
+ LDFLAGS="$LDFLAGS -L$ssldir/lib";
RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
AC_CHECK_LIB(crypto, HMAC_CTX_init,, [
AC_MSG_ERROR([OpenSSL found in $ssldir, but version 0.9.7 or higher is required])
AC_MSG_ERROR(Cannot find the libevent library in $withval)
else
AC_MSG_RESULT(found in $thedir)
- LDFLAGS="$LDFLAGS -L$thedir/lib -levent";
+ LDFLAGS="$LDFLAGS -L$thedir/lib";
RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
AC_CHECK_LIB(event, event_set)
fi
# define ATTR_UNUSED(x) x
#endif /* !HAVE_ATTR_UNUSED */
+#include "ldns/ldns.h"
+
])
AC_CONFIG_FILES([Makefile])
+24 January 2007: Wouter
+ - cleaned up configure.ac.
+
23 January 2007: Wouter
- added libevent to configure to link with.
- util/netevent setup work.
}
struct comm_point*
-comm_point_create_udp(struct comm_base *base, int fd, struct buffer* buffer,
+comm_point_create_udp(struct comm_base *base, int fd, ldns_buffer* buffer,
comm_point_callback_t* callback, void* callback_arg)
{
struct comm_point* c = (struct comm_point*)calloc(1,
return NULL;
}
c->fd = -1;
- c->buffer = NULL /* routine to create new buffer! bufsize */;
+ c->buffer = ldns_buffer_new(bufsize);
c->timeout = NULL;
c->tcp_is_reading = 0;
c->tcp_byte_count = 0;
#define NET_EVENT_H
#include "config.h"
-struct buffer;
+struct comm_point;
/* internal event notification data storage structure. */
struct internal_event;
struct internal_base;
-struct comm_point;
/** callback from communication point function type */
typedef int comm_point_callback_t(struct comm_point*, void*, int);
struct timeval *timeout;
/** buffer pointer. Either to perthread, or own buffer or NULL */
- struct buffer *buffer;
+ ldns_buffer *buffer;
/* -------- TCP Handler -------- */
/** Read/Write state for TCP */
* Sets timeout to NULL. Turns off TCP options.
*/
struct comm_point* comm_point_create_udp(struct comm_base *base,
- int fd, struct buffer* buffer,
+ int fd, ldns_buffer* buffer,
comm_point_callback_t* callback, void* callback_arg);
/**