Here’s a memo on how to check the options specified for ./configure in PHP.
Navigate to the source file directory where you ran ./configure and check the contents of the config.nice file.
cat config.nice
The second method is to check phpinfo.
php -i | grep './configure'
[Reference]:PHPのコンパイルオプションの調査 - takami_hirokiの日記
That’s all from the Gemba.