Replace the hardcoded paths with variables.
["AS_ESCAPE([-I$(top_builddir) -I$(top_srcdir)]) $THREADFLAGS $BOOST_CPPFLAGS"]
)
+AC_SUBST([YAHTTP_CFLAGS], ['-I$(top_srcdir)/pdns/ext/yahttp'])
+AC_SUBST([YAHTTP_LIBS], ['-L$(top_builddir)/pdns/ext/yahttp/yahttp -lyahttp'])
+
export moduledirs moduleobjects modulelibs
AC_CONFIG_FILES([
AM_CPPFLAGS += \
-I../../pdns/ext/rapidjson/include \
- -I../../pdns/ext/yahttp \
+ $(YAHTTP_CFLAGS) \
$(POLARSSL_CFLAGS) \
$(LIBZMQ_CFLAGS)
libremotebackend_la_LDFLAGS = -module -avoid-version
-libremotebackend_la_LIBADD = ../../pdns/ext/yahttp/yahttp/libyahttp.la
+libremotebackend_la_LIBADD = $(YAHTTP_LIBS)
if REMOTEBACKEND_ZEROMQ
libremotebackend_la_LIBADD += $(LIBZMQ_LIBS)
remotebackend.hh remotebackend.cc
libtestremotebackend_la_LIBADD = \
- -L../../pdns/ext/yahttp/yahttp -lyahttp \
+ $(YAHTTP_LIBS) \
$(POLARSSL_LIBS) \
$(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
$(BOOST_SERIALIZATION_LIBS) \
AM_CPPFLAGS += \
-I$(top_srcdir)/pdns/ext/rapidjson/include \
- -I$(top_srcdir)/pdns/ext/yahttp
+ $(YAHTTP_CFLAGS)
AM_CXXFLAGS = \
-DSYSCONFDIR=\"$(sysconfdir)\" \
$(LUA_CFLAGS) \
$(POLARSSL_CFLAGS)
-YAHTTP_LIBS = -Lext/yahttp/yahttp -lyahttp
-
AM_LFLAGS = -i
AM_YFLAGS = -d --verbose --debug
dnsrecords.cc dnsrecords.hh \
dnswriter.cc dnswriter.hh \
epollmplexer.cc \
- ext/yahttp/yahttp/reqresp.cpp \
- ext/yahttp/yahttp/router.cpp \
htimer.cc htimer.hh \
json.cc json.hh \
logger.cc \