From: Miod Vallat Date: Mon, 31 Mar 2025 06:33:57 +0000 (+0200) Subject: Put DNSDIST or RECURSOR in CPPFLAGS rather than in config.h. X-Git-Tag: dnsdist-2.0.0-alpha2~98^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6cba984a66065957ebc557fcd64c13695ad7575;p=thirdparty%2Fpdns.git Put DNSDIST or RECURSOR in CPPFLAGS rather than in config.h. This matches what the meson build does. --- diff --git a/pdns/dnsdistdist/configure.ac b/pdns/dnsdistdist/configure.ac index 6ef1e13668..4052a1ef52 100644 --- a/pdns/dnsdistdist/configure.ac +++ b/pdns/dnsdistdist/configure.ac @@ -9,9 +9,7 @@ AC_PROG_CC AC_PROG_CXX AC_LANG([C++]) -AC_DEFINE([DNSDIST], [1], - [This is dnsdist] -) +CPPFLAGS="-DDNSDIST $CPPFLAGS" # Warn when pkg.m4 is missing m4_pattern_forbid([^_?PKG_[A-Z_]+$], [*** pkg.m4 missing, please install pkg-config]) diff --git a/pdns/recursordist/configure.ac b/pdns/recursordist/configure.ac index db7d3cfbb2..983e77d2d8 100644 --- a/pdns/recursordist/configure.ac +++ b/pdns/recursordist/configure.ac @@ -27,9 +27,7 @@ AC_LANG([C++]) PDNS_CHECK_TIME_T -AC_DEFINE([RECURSOR], [1], - [This is the PowerDNS Recursor] -) +CPPFLAGS="-DRECURSOR $CPPFLAGS" # Warn when pkg.m4 is missing m4_pattern_forbid([^_?PKG_[A-Z_]+$], [*** pkg.m4 missing, please install pkg-config])