diff --git a/Makefile.am b/Makefile.am index 33aba63..dbec51f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,13 +2,12 @@ ACLOCAL_AMFLAGS = -I m4 lib_LTLIBRARIES = libmodentropy.la -libmodentropy_la_SOURCES = mod_entropy.c mod_entropy_get_entropy_bits.c \ - mod_entropy_add_entropy.c +libmodentropy_la_SOURCES = mod_entropy.c libmodentropy_la_LDFLAGS = -lrt -lm install: libmodentropy.la - apxs -i -a -n entropy libmodentropy.la + @APXS@ -i -a -n entropy libmodentropy.la ## Define that an include directory is required. -#INCLUDES = -I@apache_dir@/include -I/usr/include/apr-1 +INCLUDES = -I@AP_INCLUDE@ -I@APR_INCLUDE@ diff --git a/configure.ac b/configure.ac index 6636153..b915d50 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,7 @@ AC_PREREQ([2.68]) AC_INIT([mod_entropy], [0.1.0], [Georg Hopp -#include -#include -#include -#include +#include "httpd.h" +#include "http_core.h" +#include "http_connection.h" +#include "http_config.h" +#include "http_core.h" +#include "http_log.h" +#include "apu.h" +#include "apr_general.h" +#include "apr_sha1.h" #include #include @@ -127,8 +131,8 @@ entropy_filter_in( */ apr_sha1_update( &sha1_ctx, - connection->client_ip, - strlen(connection->client_ip)); + connection->remote_ip, + strlen(connection->remote_ip)); /** * add request line to sha1