]> granicus.if.org Git - php/commitdiff
Clean build system
authorPeter Kokot <peterkokot@gmail.com>
Wed, 13 Mar 2019 21:50:53 +0000 (22:50 +0100)
committerPeter Kokot <peterkokot@gmail.com>
Thu, 14 Mar 2019 19:20:12 +0000 (20:20 +0100)
Changes:
- AC_TYPE_SIZE_T called on only one place (configure.ac)
- AC_FUNC_ALLOCA called on only one place (configure.ac)
- AC_TYPE_UID_T called on only one place (configure.ac)
- HAVE_STRSTR removed since strstr is part of C89 standard [1]
- Remove checks for strtol and strpbrk
- Checking for the presence of perror function is not needed anymore
  since it is part of C89 standard and PHP calls it unconditionally.
- Checking for functions strdup, setenv, strerror, and memmove done only
  on one place (configure.ac)
- outdated check for snprintf removed

1: https://port70.net/~nsz/c/c89/c89-draft.html

Zend/Zend.m4
configure.ac
ext/xmlrpc/libxmlrpc/acinclude.m4
sapi/fpm/config.m4
win32/build/config.w32.h.in

index fe8632b25ee7af11b4f157448168d38fc7c86449..f382c53c469ce85fd64cade79c6b58e46fcf587e 100644 (file)
@@ -22,8 +22,6 @@ unix.h \
 cpuid.h \
 dlfcn.h)
 
-AC_TYPE_SIZE_T
-
 AC_DEFUN([LIBZEND_DLSYM_CHECK],[
 dnl
 dnl Ugly hack to check if dlsym() requires a leading underscore in symbol name.
@@ -40,8 +38,7 @@ _LT_AC_TRY_DLOPEN_SELF([
 ])
 
 dnl Checks for library functions.
-AC_FUNC_ALLOCA
-AC_CHECK_FUNCS(strdup getpid kill strtod strtol finite fpclass sigsetjmp)
+AC_CHECK_FUNCS(getpid kill strtod finite fpclass sigsetjmp)
 
 AC_CHECK_DECLS([isfinite, isnan, isinf], [], [], [[#include <math.h>]])
 
index 7fc0dc77f06249efb88be61405a273759b63021d..8fca2885b2a7eba096cbdc1da58c8f75831d7827 100644 (file)
@@ -631,7 +631,6 @@ memmove \
 mkstemp \
 mmap \
 nl_langinfo \
-perror \
 poll \
 ptsname \
 putenv \
@@ -659,7 +658,6 @@ strdup \
 strerror \
 strnlen \
 strptime \
-strstr \
 strtok_r \
 symlink \
 tempnam \
index d73ae8cc357afd831b31c2002a42c39db6b25345..0c63d953568e80688c57183d8a26e86be8725718 100644 (file)
@@ -3,11 +3,7 @@
 AC_DEFUN([XMLRPC_FUNCTION_CHECKS],[
 
 # Standard XMLRPC list
-AC_CHECK_FUNCS( \
- strtoul strtoull snprintf \
- strstr strpbrk strerror\
- memmove)
-
+AC_CHECK_FUNCS(strtoul strtoull)
 ])
 
 AC_DEFUN([XMLRPC_HEADER_CHECKS],[
@@ -22,8 +18,4 @@ 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
-
-
 ])
index b23a6746d144a28eafc99c9b569148c37d29879e..2aed96046c9ee93953363219d9829f4b0f8fe4ed 100644 (file)
@@ -9,7 +9,7 @@ PHP_ARG_ENABLE([fpm],,
 dnl configure checks {{{
 AC_DEFUN([AC_FPM_STDLIBS],
 [
-  AC_CHECK_FUNCS(setenv clearenv setproctitle setproctitle_fast)
+  AC_CHECK_FUNCS(clearenv setproctitle setproctitle_fast)
 
   AC_SEARCH_LIBS(socket, socket)
   AC_SEARCH_LIBS(inet_addr, nsl)
index 067305c763a377afa742f711f09c122adf6bbe43..b2d944c14d693b152d7ac3ce94dca273145ccb91 100644 (file)
@@ -86,7 +86,6 @@
 #define HAVE_STRCASECMP 1
 #define HAVE_STRDUP 1
 #define HAVE_STRERROR 1
-#define HAVE_STRSTR 1
 #define HAVE_TEMPNAM 1
 #define HAVE_UTIME 1
 #undef HAVE_DIRENT_H