-AM_CPPFLAGS = -I pdns $(LUA_CFLAGS) $(YAHTTP_CFLAGS) $(BOOST_CPPFLAGS) -O3 -Wall -pthread -DSYSCONFDIR=\"${sysconfdir}\"
+AM_CPPFLAGS = -I pdns $(LUA_CFLAGS) $(YAHTTP_CFLAGS) $(BOOST_CPPFLAGS) -I$(CURDIR)/ext/mbedtls/include -O3 -Wall -pthread -DSYSCONFDIR=\"${sysconfdir}\"
ACLOCAL_AMFLAGS = -I m4
ext/luawrapper/include/LuaContext.hpp \
ext/json11/json11.cpp \
ext/json11/json11.hpp \
- ext/incbin/incbin.h
+ ext/incbin/incbin.h \
+ ext/mbedtls/include/mbedtls/config.h \
+ ext/mbedtls/include/mbedtls/check_config.h \
+ ext/mbedtls/include/mbedtls/base64.h \
+ ext/mbedtls/include/mbedtls/platform.h \
+ ext/mbedtls/library/base64.c
dnsdist_LDFLAGS = \
$(AM_LDFLAGS) \
AC_SUBST([YAHTTP_LIBS], ['-L$(top_builddir)/ext/yahttp/yahttp -lyahttp'])
DNSDIST_LUA
AX_CXX_COMPILE_STDCXX_11(ext,mandatory)
+AC_DEFINE([HAVE_MBEDTLS2], [1], [Defined if mbed TLS version 2.x.x is used])
AC_CONFIG_FILES([Makefile
ext/yahttp/Makefile
set -e
set -x
-ln -fs ../base32.hh ../base64.hh ../dnsdist.cc ../dnsdist.hh ../dnsdist-lua.cc \
+ln -fs ../base64.hh ../dnsdist.cc ../dnsdist.hh ../dnsdist-lua.cc \
../dns.hh ../dnslabeltext.rl ../dnsname.cc ../dnsname.hh ../dnsparser.hh \
../dnsrulactions.hh ../dnswriter.cc ../dnswriter.hh ../dolog.hh \
- ../iputils.cc ../iputils.hh ../misc.cc ../misc.hh ../namespaces.hh \
+ ../iputils.cc ../iputils.hh ../mbedtlscompat.hh ../misc.cc ../misc.hh ../namespaces.hh \
../pdnsexception.hh ../qtype.cc ../qtype.hh ../sholder.hh ../sodcrypto.cc \
../sodcrypto.hh ../dnsdist-web.cc ../sstuff.hh ../dnsdist-tcp.cc \
../dnsdist-carbon.cc ../delaypipe.cc ../delaypipe.hh .
mkdir -p ext/incbin
ln -sf ../../../../ext/incbin/incbin.h ext/incbin
+mkdir -p ext/mbedtls/include/mbedtls
+ln -sf ../../../../../../ext/mbedtls/include/mbedtls/config.h \
+ ../../../../../../ext/mbedtls/include/mbedtls/check_config.h \
+ ../../../../../../ext/mbedtls/include/mbedtls/base64.h \
+ ../../../../../../ext/mbedtls/include/mbedtls/platform.h \
+ ext/mbedtls/include/mbedtls
+mkdir -p ext/mbedtls/library
+ln -sf ../../../../../ext/mbedtls/library/base64.c ext/mbedtls/library
+
pandoc -s -t man ../../docs/manpages/dnsdist.1.md > dnsdist.1
mkdir -p ext/yahttp/yahttp