summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2019-11-27 13:02:26 +0000
committerFrediano Ziglio <fziglio@redhat.com>2020-02-06 19:26:21 +0000
commit26d3f6e13837681c3f63349c155304101ad45ab6 (patch)
tree23c7c6f04c67aee7823275cc0bec3b503adaf8a2 /m4
parentf3d6c5f3228d54efe890e3fd096b8e80ac116871 (diff)
build: Clean up some configure checks
Remove some system checks. Specifically: - functions in the standard C (memset, memmove); - functions we use but we assume in the specific implementation present (dup2, fork); - functions we don't use (error_at_line); - headers in the standard C (stddef.h, stdint.h, string.h); - headers present in all systems we support if are not checked in the source files (malloc.h); - types we assume being present (XintYY_t, pid_t). Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/spice-deps.m416
1 files changed, 2 insertions, 14 deletions
diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4
index c4a16e7..53255e1 100644
--- a/m4/spice-deps.m4
+++ b/m4/spice-deps.m4
@@ -35,26 +35,14 @@ AM_COND_IF([ENABLE_EXTRA_CHECKS], AC_DEFINE([ENABLE_EXTRA_CHECKS], 1, [Enable ex
AC_DEFUN([SPICE_CHECK_SYSDEPS], [
AC_C_BIGENDIAN
AC_FUNC_ALLOCA
- AC_CHECK_HEADERS([arpa/inet.h malloc.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/socket.h unistd.h])
+ AC_CHECK_HEADERS([arpa/inet.h netinet/in.h stdlib.h sys/socket.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics
AC_C_INLINE
- AC_TYPE_INT16_T
- AC_TYPE_INT32_T
- AC_TYPE_INT64_T
- AC_TYPE_INT8_T
- AC_TYPE_PID_T
- AC_TYPE_SIZE_T
- AC_TYPE_UINT16_T
- AC_TYPE_UINT32_T
- AC_TYPE_UINT64_T
- AC_TYPE_UINT8_T
# Checks for library functions
# do not check malloc or realloc, since that cannot be cross-compiled checked
- AC_FUNC_ERROR_AT_LINE
- AC_FUNC_FORK
- AC_CHECK_FUNCS([dup2 floor memmove memset])
+ AC_CHECK_FUNCS([floor])
AC_SEARCH_LIBS([hypot], [m], [], [
AC_MSG_ERROR([unable to find the hypot() function])
])