diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2019-11-27 13:02:26 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2020-02-06 19:26:21 +0000 |
commit | 26d3f6e13837681c3f63349c155304101ad45ab6 (patch) | |
tree | 23c7c6f04c67aee7823275cc0bec3b503adaf8a2 | |
parent | f3d6c5f3228d54efe890e3fd096b8e80ac116871 (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>
-rw-r--r-- | m4/spice-deps.m4 | 16 | ||||
-rw-r--r-- | meson.build | 6 |
2 files changed, 2 insertions, 20 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]) ]) diff --git a/meson.build b/meson.build index 05091fb..fd6133b 100644 --- a/meson.build +++ b/meson.build @@ -54,14 +54,8 @@ headers = ['alloca.h', 'arpa/inet.h', 'dlfcn.h', 'inttypes.h', - 'malloc.h', - 'memory.h', 'netinet/in.h', - 'stddef.h', - 'stdint.h', 'stdlib.h', - 'strings.h', - 'string.h', 'sys/socket.h', 'sys/stat.h', 'sys/types.h', |