])
AX_CXX_COMPILE_STDCXX_11()
-AM_CONDITIONAL([CXX2011],[test "$HAVE_CXX11" = "1"])
AC_MSG_CHECKING([whether we will enable compiler security checks])
AC_ARG_ENABLE([hardening],
[AC_MSG_NOTICE([Lua support: $LUAPC])],
[AC_MSG_NOTICE([Lua support: no])]
)
-AS_IF([test "$HAVE_CXX11" = "1"],
- [AC_MSG_NOTICE([C++2011 support: yes])],
- [AC_MSG_NOTICE([C++2011 support: no])]
-)
AC_MSG_NOTICE([])
if TOOLS
bin_PROGRAMS += \
+ calidns\
dnsbulktest \
+ dnsdist \
dnsgram \
dnsreplay \
dnsscan \
dnsscope \
dnstcpbench \
dnswasher \
+ dumresp \
notify \
nproxy \
nsec3dig \
saxfr
-
-if CXX2011
-bin_PROGRAMS += dnsdist calidns dumresp
-endif
-
endif
EXTRA_PROGRAMS = \
dns_random.cc \
dnsbackend.cc \
dnslabeltext.cc \
+ dnsname.cc \
+ dnsname.hh \
dnspacket.cc \
dnsparser.cc \
dnsrecords.cc \
misc.cc \
nameserver.cc \
nsecrecords.cc \
+ packetcache.cc \
qtype.cc \
rcpgenerator.cc \
responsestats.cc \
test-base64_cc.cc \
test-bindparser_cc.cc \
test-dns_random_hh.cc \
+ test-dnsname_cc.cc \
test-dnsrecords_cc.cc \
test-iputils_hh.cc \
test-md5_hh.cc \
test-nameserver_cc.cc \
test-packetcache_cc.cc \
test-rcpgenerator_cc.cc \
+ test-sha_hh.cc \
test-sholder_hh.cc \
test-statbag_cc.cc \
test-zoneparser_tng_cc.cc \
testrunner.cc \
- test-sha_hh.cc \
- packetcache.cc \
- unix_utility.cc \
ueberbackend.cc \
+ unix_utility.cc \
zoneparser-tng.cc zoneparser-tng.hh
-if CXX2011
-testrunner_SOURCES += test-dnsname_cc.cc dnsname.cc dnsname.hh
-endif
-
-
testrunner_LDFLAGS = \
$(AM_LDFLAGS) \
$(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS) \
AC_SUBST([YAHTTP_LIBS], ['-L$(top_builddir)/pdns/ext/yahttp/yahttp -lyahttp'])
PDNS_WITH_LUA
AX_CXX_COMPILE_STDCXX_11(ext,mandatory)
-AM_CONDITIONAL([CXX2011],[test "$HAVE_CXX11" = "1"])
AC_CONFIG_FILES([Makefile
pdns/ext/yahttp/Makefile
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_NO_MAIN
-#ifndef HAVE_CXX11
+// Disable this code for gcc 4.8 and lower
+#if (__GNUC__ == 4 && __GNUC_MINOR__ > 8) || !__GNUC__
#ifdef HAVE_CONFIG_H
#include "config.h"