-AC_PREREQ([2.61])
+AC_PREREQ([2.69])
AC_INIT([pdns], m4_esyscmd([builder-support/gen-version]))
AC_CONFIG_SRCDIR([pdns/receiver.cc])
AC_CONFIG_MACRO_DIR([m4])
+AC_USE_SYSTEM_EXTENSIONS
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([build-aux])
AM_PROG_CC_C_O
PDNS_CHECK_BISON
PDNS_CHECK_FLEX
-AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_CXX
AC_LANG([C++])
-AC_DEFINE([_GNU_SOURCE], [1],
- [Define _GNU_SOURCE so that we get all necessary prototypes]
-)
-
# Warn when pkg.m4 is missing
m4_pattern_forbid([^_?PKG_[A-Z_]+$], [*** pkg.m4 missing, please install pkg-config])
AC_DEFUN([PDNS_CHECK_FLEX], [
- AC_REQUIRE([AC_PROG_LEX])
+ AC_PROG_LEX(noyywrap)
AC_REQUIRE([AC_PROG_EGREP])
AC_CACHE_CHECK([if the lexer is flex],[pdns_cv_prog_flex],[
AC_DEFUN([PDNS_CHECK_LMDB], [
AC_MSG_CHECKING([where to find the lmdb library and headers])
AC_ARG_WITH([lmdb],
- AC_HELP_STRING([--with-lmdb], [lmdb library to use @<:@default=auto@:>@]),[
+ AS_HELP_STRING([--with-lmdb], [lmdb library to use @<:@default=auto@:>@]),[
with_lmdb=$withval
],[
with_lmdb=auto
CXXFLAGS="$old_CXXFLAGS"
LDFLAGS="$old_LDFLAGS"
],
- [AC_MSG_ERROR([remotebackend \"zeromq\" selected but the \"remote\" backend itself is not selected. Please add \"remote\" to your modules or dynmodules list and re-run configure!])]
+ [AC_MSG_ERROR([remotebackend "zeromq" selected but the "remote" backend itself is not selected. Please add "remote" to your modules or dynmodules list and re-run configure!])]
)
]
)
dnl The Gaim Project (now know as Pidgin) is licensed under the GPLv2
AC_DEFUN([MC_TM_GMTOFF],
-[AC_REQUIRE([AC_STRUCT_TM])dnl
-AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
-[AC_TRY_COMPILE([#include <sys/types.h>
-#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;],
- ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
-if test "$ac_cv_struct_tm_gmtoff" = yes; then
- AC_DEFINE(HAVE_TM_GMTOFF, 1, [tm_gmtoff is available.])
-fi
+ [AC_REQUIRE([AC_STRUCT_TM])dnl
+ AC_CACHE_CHECK([for tm_gmtoff in struct tm],
+ ac_cv_struct_tm_gmtoff,
+ [
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
+#include <sys/types.h>
+#include <$ac_cv_struct_tm>
+struct tm tm; tm.tm_gmtoff;
+ ]]),
+ ac_cv_struct_tm_gmtoff=yes,
+ ac_cv_struct_tm_gmtoff=no])
+ ]
+ )
+ if test "$ac_cv_struct_tm_gmtoff" = yes; then
+ AC_DEFINE(HAVE_TM_GMTOFF, 1, [tm_gmtoff is available.])
+ fi
])
-AC_PREREQ([2.61])
+AC_PREREQ([2.69])
AC_INIT([dnsdist], m4_esyscmd(build-aux/gen-version))
AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip parallel-tests 1.11 subdir-objects])
AC_PROG_CC
AC_PROG_CXX
AC_LANG([C++])
-AC_GNU_SOURCE
AC_DEFINE([DNSDIST], [1],
[This is dnsdist]
-AC_PREREQ([2.61])
+AC_PREREQ([2.69])
AC_INIT([pdns-recursor], m4_esyscmd(build-aux/gen-version))
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([pdns_recursor.cc])
AC_CONFIG_MACRO_DIR([m4])
+AC_USE_SYSTEM_EXTENSIONS
AC_CONFIG_HEADERS([config.h])
AC_CANONICAL_HOST
AC_PROG_CXX
AC_LANG([C++])
-AC_GNU_SOURCE
-
AC_DEFINE([RECURSOR], [1],
[This is the PowerDNS Recursor]
)
m4_pattern_forbid([^_?PKG_[A-Z_]+$], [*** pkg.m4 missing, please install pkg-config])
AX_CXX_COMPILE_STDCXX_17([noext], [mandatory])
-AC_PROG_LIBTOOL
+LT_INIT()
PDNS_CHECK_OS
PDNS_CHECK_NETWORK_LIBS