Simplify setpflags Autoconf check (#13458)

Similar simplification as e72f0c887b.
This commit is contained in:
Peter Kokot 2024-02-21 21:01:47 +01:00 committed by GitHub
parent ec9ae1ec1b
commit 7b2c67ca98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,18 +12,6 @@ AC_DEFUN([AC_FPM_STDLIBS],
AC_SEARCH_LIBS(inet_addr, nsl)
])
AC_DEFUN([AC_FPM_SETPFLAGS],
[
AC_MSG_CHECKING([for setpflags])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <priv.h>]], [[setpflags(0, 0);]])], [
AC_DEFINE([HAVE_SETPFLAGS], 1, [do we have setpflags?])
AC_MSG_RESULT([yes])
], [
AC_MSG_RESULT([no])
])
])
AC_DEFUN([AC_FPM_CLOCK],
[
have_clock_gettime=no
@ -507,7 +495,6 @@ if test "$PHP_FPM" != "no"; then
AC_MSG_RESULT($PHP_FPM)
AC_FPM_STDLIBS
AC_FPM_SETPFLAGS
AC_FPM_CLOCK
AC_FPM_TRACE
AC_FPM_BUILTIN_ATOMIC
@ -520,6 +507,8 @@ if test "$PHP_FPM" != "no"; then
AC_FPM_EPOLL
AC_FPM_SELECT
AC_CHECK_HEADER([priv.h], [AC_CHECK_FUNCS([setpflags])])
PHP_ARG_WITH([fpm-user],,
[AS_HELP_STRING([[--with-fpm-user[=USER]]],
[Set the user for php-fpm to run as. (default: nobody)])],