]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
configure: update AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS arguments
authorDaniel Salzman <daniel.salzman@nic.cz>
Mon, 27 Aug 2018 20:15:57 +0000 (22:15 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Mon, 27 Aug 2018 20:15:57 +0000 (22:15 +0200)
configure.ac

index 46f3cb8cbea46a1deb0cf681732270aec43ae1fc..387b0ee3a081963a08be0b52b23a482799f892a2 100644 (file)
@@ -545,13 +545,13 @@ AC_SEARCH_LIBS([capng_apply], [cap-ng])
 
 # Checks for header files.
 AC_HEADER_RESOLV
-AC_CHECK_HEADERS_ONCE([cap-ng.h pthread_np.h signal.h sys/time.h sys/wait.h sys/uio.h])
+AC_CHECK_HEADERS_ONCE([cap-ng.h pthread_np.h sys/uio.h])
 
-# Checks for library functions.
-AC_CHECK_FUNCS([clock_gettime gettimeofday fgetln getline madvise malloc_trim poll \
-                posix_memalign pthread_setaffinity_np setgroups strlcat strlcpy \
-                initgroups accept4])
+# Checks for optional library functions.
+AC_CHECK_FUNCS([accept4 clock_gettime fgetln getline initgroups malloc_trim \
+                pthread_setaffinity_np setgroups strlcat strlcpy sysctlbyname])
 
+# Check for mandatory library functions.
 AC_CHECK_FUNC([vasprintf], [], [
   AC_MSG_ERROR([vasprintf support in the libc is required])])