Mark Andrews
5e3f20a71b
remove duplicate block
2018-11-12 17:57:31 +11:00
Mark Andrews
4f04a79250
check result tables are complete
2018-11-10 10:30:43 +11:00
Ondřej Surý
fbd2e47f51
Add small tweaks to the code to fix compilation when ISC assertions are disabled
...
While implementing the new unit testing framework cmocka, it was found that the
BIND 9 code doesn't compile when assertions are disabled or replaced with any
function (such as mock_assert() from cmocka unit testing framework) that's not
directly recognized as assertion by the compiler.
This made the compiler to complain about blocks of code that was recognized as
unreachable before, but now it isn't.
The changes in this commit include:
* assigns default values to couple of local variables,
* moves some return statements around INSIST assertions,
* adds __builtin_unreachable(); annotations after some INSIST assertions,
* fixes one broken assertion (= instead of ==)
2018-11-08 12:21:53 +07:00
Ondřej Surý
54ff27a6bc
Add and use AX_POSIX_SHELL autoconf macro, so we can rely on POSIX shell features
2018-11-08 02:52:19 +07:00
Witold Krecicki
7b6721b27f
isc_thread_setaffinity()
2018-11-06 08:19:50 +00:00
Mark Andrews
bf8746126c
require python to be explicitly disabled
2018-11-06 16:10:09 +11:00
Mark Andrews
c94bd140e3
regen
2018-11-02 13:09:04 +11:00
Ondřej Surý
d6c50674bb
Remove last traces of DSA and NSEC3DSA algorithm, but restore the algnumber -> name mapping
2018-10-26 11:50:11 +02:00
Ondřej Surý
eb603cb021
Check for individual OpenSSL functions instead of relying on version number
2018-10-26 06:15:51 +02:00
Ondřej Surý
7fd3dc63de
Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256
2018-10-25 08:15:42 +02:00
Ondřej Surý
032e6963fe
Check for yield support on ARM and print helpfull error message about -march
2018-10-23 09:35:00 +02:00
Ondřej Surý
c4cee27f9b
Add support for enabling and enforcing FIPS mode in OpenSSL:
...
* Add configure option --enable-fips-mode that detects and enables FIPS mode
* Add a function to enable FIPS mode and call it on crypto init
* Log an OpenSSL error when FIPS_mode_set() fails and exit
* Report FIPS mode status in a separate log message from named
2018-10-22 20:55:35 +02:00
Evan Hunt
a6f43574a0
report "$CC --version" output as part of the configure summary
2018-09-10 12:47:03 -04:00
Ondřej Surý
8e4cc152f7
Remove HAVE_SYS_PRCTL_H check as the prctl() system call was introduced in Linux 2.1.57.
2018-09-07 12:43:43 +02:00
Ondřej Surý
161b5dccae
Remove NEED_PTHREAD_SCOPE_SYSTEM define that was needed on older FreeBSDs
2018-09-07 12:17:40 +02:00
Ondřej Surý
2750799132
Assume socklen_t is always available on all supported platforms (except on Windows where it is typedefed to int32_t)
2018-09-07 12:17:40 +02:00
Ondřej Surý
7716bdd400
Remove dummy PATH_RANDOMDEV and CHECK_DSA defines
2018-09-07 12:17:40 +02:00
Ondřej Surý
43c468926b
Remove HAVE_FLOCKFILE and HAVE_GETCUNLOCKED custom defines in favour of AC_CHECK_FUNCS call
2018-09-07 12:17:40 +02:00
Ondřej Surý
7384a9f23a
Replace custom HAVE_CATGETS define with AC_CHECK_FUNCS call
2018-09-07 12:17:40 +02:00
Ondřej Surý
78bb5761a0
Replace custom HAVE_SYSCTLBYNAME define with AC_CHECK_FUNCS call
2018-09-07 12:17:40 +02:00
Ondřej Surý
4a5ecad038
Replace custom HAVE_SIGWAIT define with AC_CHECK_FUNCS
2018-09-07 12:17:40 +02:00
Ondřej Surý
19ae4438ab
Replace custom HAVE_SYSCONF with proper AC_CHECK_FUNCS call
2018-09-07 12:17:40 +02:00
Ondřej Surý
c7b1e7fd08
Linux (glibc) has NPTL since LinuxThreads are no-more, so remove HAVE_LINUXTHREADS
2018-09-07 12:17:40 +02:00
Ondřej Surý
2f02552a93
Remove now dummy NEED_PTHREAD_INIT
2018-09-07 12:17:30 +02:00
Ondřej Surý
4d46f0f95d
Drop ISC_PLATFORM_USEDECLSPEC and IRS_PLATFORM_USEDECLSPEC as they are platform dependent and only unix vs win32 platform.h header difference is enough
2018-09-07 12:17:30 +02:00
Ondřej Surý
51b0d5d55e
Replace platform ISC_PLATFORM_HAVESTATNSEC with config ENABLE_STAT_NSEC
2018-09-07 12:17:30 +02:00
Ondřej Surý
f1d3055d7b
Replace platform ISC_PLATFORM_HAVETFO with config ENABLE_TCP_FASTOPEN
2018-09-07 12:17:30 +02:00
Ondřej Surý
092edb5b44
Replace platform ISC_PLATFORM_HAVEDEVPOLL with check for devpoll.h headers
2018-09-07 12:17:30 +02:00
Ondřej Surý
5d65392d18
Replace platform ISC_PLATFORM_HAVEEPOLL with config HAVE_EPOLL_CREATE1
2018-09-07 12:17:30 +02:00
Ondřej Surý
68f473a25e
Replace platform ISC_PLATFORM_HAVEKQUEUE with config HAVE_KQUEUE
2018-09-07 12:17:30 +02:00
Ondřej Surý
d00ef56dfa
Remove dummy ISC_PLATFORM_HAVESTRINGSH platform define
2018-09-07 12:17:30 +02:00
Ondřej Surý
47f18c7d50
Replace platform ISC_PLATFORM_NEEDSTRLCPY and ISC_PLATFORM_NEEDSTRLCAT with AC_CHECK_FUNCS call
2018-09-07 12:17:30 +02:00
Ondřej Surý
4014bc42dd
According to POSIX.1-2001, POSIX.1-2008 #include <sys/select.h> is correct way to get fd_set
2018-09-07 12:17:30 +02:00
Ondřej Surý
1333d4a71a
Remove dummy ISC_PLATFORM_HAVELIFCONF platform define
2018-09-07 12:17:30 +02:00
Ondřej Surý
0bea5c2baf
Replace platform.h ISC_PLATFORM_HAVEIFNAMETOINDEX with config HAVE_IF_NAMETOINDEX
2018-09-07 12:17:30 +02:00
Ondřej Surý
53d87175df
Remove dummy ISC_PLATFORM_HAVEIF_LADDRREQ platform define
2018-09-07 12:17:30 +02:00
Ondřej Surý
c798db0fcd
Remove dummy ISC_PLATFORM_HAVEIF_LADDRCONF define
2018-09-07 12:17:30 +02:00
Ondřej Surý
22e5231f99
Remove ISC_PLATFORM_BUSYWAITNOP in favour of direct isc_rwlock_pause() define
2018-09-07 12:17:29 +02:00
Ondřej Surý
510bb376e1
Define platform.h ISC_PLATFORM_USEBACKTRACE with config.h USE_BACKTRACE
2018-09-07 12:17:29 +02:00
Ondřej Surý
75c2996df8
Cleanup lib/isc/$\arch/ Makefile.in(s) from configure.in
2018-08-31 08:19:15 -04:00
Evan Hunt
d3e2f848ec
configure could loop if --with-pic was specified
2018-08-29 19:19:50 -04:00
Ondřej Surý
d60e553a64
-Xcompiler -shared is generally needed when using libtool on Linux, not only when -ld is present
2018-08-29 16:37:26 +02:00
Ondřej Surý
d03b9ec544
Make dnsrps play well with dlopen
2018-08-29 16:37:26 +02:00
Ondřej Surý
77f71d7d4a
Rewrite dlopen detection using modern autoconf language constructs
2018-08-29 16:37:26 +02:00
Evan Hunt
5928d31efc
make --without-pic imply --disable-shared and --without-dlopen
2018-08-29 16:37:26 +02:00
Ondřej Surý
cacd21c075
Enable system extensions macros using AC_USE_SYSTEM_EXTENSIONS
...
and remove handcrafted code that enabled __EXTENSIONS__ and _GNU_SOURCE
2018-08-29 13:31:27 +02:00
Ondřej Surý
facc390b54
Update configure.in to check for both stdatomic.h and __atomic builtins
2018-08-28 12:15:39 +02:00
Ondřej Surý
f1d658764c
Remove dead check for long long support
2018-08-28 10:31:49 +02:00
Ondřej Surý
52e1c45156
Assume PTHREAD_ONCE_INIT is not broken (remove support for ancient Solaris)
2018-08-28 10:31:48 +02:00
Ondřej Surý
a11a271b28
Assume non-broken recvmsg
2018-08-28 10:31:48 +02:00