php-src/ext/xmlrpc/libxmlrpc/acinclude.m4
Peter Kokot a700451706 Remove obsolescent AC_HEADER_STDC and memcpy check
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems anymore, including the `AC_HEADER_STDC`.

This macro checks if given system has C89 compliant header files such
as `<string.h>`, `<stdlib.h>`, `<stdarg.h>`, `<float.h>`,... and defines
the `STDC_HEADERS` symbol [2]. Case is that current systems should be
well supported with at least C89 standard headers [3].

Given headers are still additionally checked with the `AC_PROG_CC`
macro, yet not needed anyway.

Additionally, the HAVE_MEMCPY check has been removed. The memcpy
function is standardized by C89 and later.

Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
[3] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
2019-03-01 19:22:44 +01:00

29 lines
461 B
Text

# Local macros for autoconf
AC_DEFUN([XMLRPC_FUNCTION_CHECKS],[
# Standard XMLRPC list
AC_CHECK_FUNCS( \
strtoul strtoull snprintf \
strstr strpbrk strerror\
memmove)
])
AC_DEFUN([XMLRPC_HEADER_CHECKS],[
AC_CHECK_HEADERS(xmlparse.h xmltok.h strings.h)
])
AC_DEFUN([XMLRPC_TYPE_CHECKS],[
AC_REQUIRE([AC_C_INLINE])
AC_CHECK_SIZEOF(char, 1)
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(long long, 8)
AC_TYPE_SIZE_T
AC_TYPE_UID_T
])