]> granicus.if.org Git - pdns/commitdiff
Merge pull request #3005 from rgacogne/dnsdist-luajit
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 7 Dec 2015 13:57:06 +0000 (14:57 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 7 Dec 2015 13:57:06 +0000 (14:57 +0100)
Add support for using LuaJIT in dnsdist

1  2 
pdns/dnsdistdist/configure.ac

index 9fcb3957db0911dd726a4c7713071493e211f00a,ae4bf1b4c023692a6570abd28689e889c215673a..a14f308f75eedd54d008f24d8db23df7a059ad30
@@@ -11,10 -11,17 +11,18 @@@ PDNS_CHECK_READLINE([mandatory]
  PDNS_CHECK_CLOCK_GETTIME
  BOOST_REQUIRE([1.35])
  BOOST_FOREACH
 +PDNS_ENABLE_UNIT_TESTS
  AC_SUBST([YAHTTP_CFLAGS], ['-I$(top_srcdir)/ext/yahttp'])
  AC_SUBST([YAHTTP_LIBS], ['-L$(top_builddir)/ext/yahttp/yahttp -lyahttp'])
- DNSDIST_LUA
+ PDNS_WITH_LUAJIT
+ AS_IF([test "x$with_luajit" = "xno"], [
+   PDNS_WITH_LUA
+ ])
+ AS_IF([test "x$LUAPC" = "x" -a "x$LUAJITPC" = "x"], [
+   AC_MSG_ERROR([Neither Lua nor LuaJIT found, Lua support is not optional])
+ ])
  AX_CXX_COMPILE_STDCXX_11(ext,mandatory)
  AC_DEFINE([HAVE_MBEDTLS2], [1], [Defined if mbed TLS version 2.x.x is used])