[php-src] PR #11928: Fix check for using computed goto flag for re2c
| From: | petk | Date: | Wed, 09 Aug 2023 22:16:00 +0000 |
| Subject: | [php-src] PR #11928: Fix check for using computed goto flag for re2c | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23335@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11928
Author: petk
AC_LANG_SOURCE should be used instead of the AC_LANG_PROG so the compilation check can succeed when
the computed goto extension is available to optimize conditional jumps. This one was missed when we
were updating the Autoconf AC_TRY_COMPILE macros:
Steps to reproduce (Linux with GCC):
```sh
./buildconf
./configure --enable-re2c-cgoto
```
The -g flag for re2c isn't enabled (but could be):
```
...
checking whether to enable computed goto gcc extension with re2c... yes
checking whether re2c -g works... no
...
```