[php-src] PR #12966: Add cross-compiling argument to AC_RUN_IFELSE
| From: | petk | Date: | Sun, 17 Dec 2023 23:44:58 +0000 |
| Subject: | [php-src] PR #12966: Add cross-compiling argument to AC_RUN_IFELSE | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24536@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12966
Author: petk
Autoconf emits a warning if 3rd argument in AC_RUN_IFELSE is empty:
```sh
autoconf -Wall
```
```
configure.ac:1611: warning: AC_RUN_IFELSE called without default to allow cross compiling
./lib/autoconf/general.m4:2981: AC_RUN_IFELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
build/ax_check_compile_flag.m4:39: AX_CHECK_COMPILE_FLAG is expanded from...
configure.ac:1611: the top level
```
Additionally, call is wrapped in the AC_CACHE_CHECK with php_cv_* cache variable name according to
the
[docs](https://www.gnu.org/software/autoconf/manual/autoconf-2.71/autoconf.html#Cache-Variable-Names).
Related to #12642