[php-src] PR #14855: Autotools: Simplify POSIX Threads check
| From: | petk | Date: | Sun, 07 Jul 2024 00:29:27 +0000 |
| Subject: | [php-src] PR #14855: Autotools: Simplify POSIX Threads check | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27101@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14855
Author: petk
The PTHREADS_CHECK is using cache variables so it is run only once early during the configuration
phase, before including SAPI and other M4 files. This removes the TSRM_CHECK_PTHREADS macro and
moves the POSIX Threads check after the PHP_THREAD_SAFETY variable is set in configure.ac.
The check and error throw in PHP_BUILD_THREAD_SAFE is also joing into this single check.
This removes the redundant tsrm.m4 file and PHP_CONFIGURE_PART call for TSRM as it doesn't run
any configuration checks anymore.