From baf61afd95f925107d719f462c4bb14457c7be43 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Thu, 22 Feb 2024 20:18:00 +0100 Subject: [PATCH] Remove nsl library check in sapi/fpm In sapi/fpm the inet_ntop is used instead of the deprecated inet_addr and the required library, if needed, is linked from the configure.ac. --- sapi/fpm/config.m4 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sapi/fpm/config.m4 b/sapi/fpm/config.m4 index fcdceefa3f105..4d03e01b0c66b 100644 --- a/sapi/fpm/config.m4 +++ b/sapi/fpm/config.m4 @@ -5,13 +5,6 @@ PHP_ARG_ENABLE([fpm],, [no]) dnl Configure checks. -AC_DEFUN([AC_FPM_STDLIBS], -[ - AC_CHECK_FUNCS(clearenv setproctitle setproctitle_fast) - - AC_SEARCH_LIBS(inet_addr, nsl) -]) - AC_DEFUN([AC_FPM_CLOCK], [ have_clock_gettime=no @@ -482,7 +475,6 @@ AC_MSG_CHECKING(for FPM build) if test "$PHP_FPM" != "no"; then AC_MSG_RESULT($PHP_FPM) - AC_FPM_STDLIBS AC_FPM_CLOCK AC_FPM_TRACE AC_FPM_BUILTIN_ATOMIC @@ -494,6 +486,8 @@ if test "$PHP_FPM" != "no"; then AC_FPM_EPOLL AC_FPM_SELECT + AC_CHECK_FUNCS([clearenv setproctitle setproctitle_fast]) + AC_CHECK_HEADER([priv.h], [AC_CHECK_FUNCS([setpflags])]) PHP_ARG_WITH([fpm-user],,