mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Simplify times Autoconf check (#13464)
Similar simplification as e72f0c887b
.
This commit is contained in:
parent
bd365149f2
commit
1feeadd0e2
1 changed files with 1 additions and 13 deletions
|
@ -330,18 +330,6 @@ AC_DEFUN([AC_FPM_LQ],
|
|||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_FPM_TIMES],
|
||||
[
|
||||
AC_MSG_CHECKING([for times])
|
||||
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/times.h>]], [[struct tms t; times(&t);]])],[
|
||||
AC_DEFINE([HAVE_TIMES], 1, [do we have times?])
|
||||
AC_MSG_RESULT([yes])
|
||||
], [
|
||||
AC_MSG_RESULT([no])
|
||||
])
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_FPM_KQUEUE],
|
||||
[
|
||||
AC_MSG_CHECKING([for kqueue])
|
||||
|
@ -479,7 +467,6 @@ if test "$PHP_FPM" != "no"; then
|
|||
AC_FPM_TRACE
|
||||
AC_FPM_BUILTIN_ATOMIC
|
||||
AC_FPM_LQ
|
||||
AC_FPM_TIMES
|
||||
AC_FPM_KQUEUE
|
||||
AC_FPM_PORT
|
||||
AC_FPM_DEVPOLL
|
||||
|
@ -489,6 +476,7 @@ if test "$PHP_FPM" != "no"; then
|
|||
AC_CHECK_FUNCS([clearenv setproctitle setproctitle_fast])
|
||||
|
||||
AC_CHECK_HEADER([priv.h], [AC_CHECK_FUNCS([setpflags])])
|
||||
AC_CHECK_HEADER([sys/times.h], [AC_CHECK_FUNCS([times])])
|
||||
|
||||
PHP_ARG_WITH([fpm-user],,
|
||||
[AS_HELP_STRING([[--with-fpm-user[=USER]]],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue