1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix configure log message when cross-compiling (#14658)

This puts the configure log into its own lines and makes it readable:

    checking for gcc... gcc
    checking for native build C compiler... gcc
This commit is contained in:
Peter Kokot
2024-06-25 18:58:53 +02:00
committed by GitHub
parent 5db847e313
commit 0775d68322

View File

@@ -137,13 +137,11 @@ AC_PROG_CPP
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_LN_S
if test "$cross_compiling" = yes ; then
AC_MSG_CHECKING(for native build C compiler)
AC_CHECK_PROGS(BUILD_CC, [gcc clang c99 c89 cc cl],none)
AC_MSG_RESULT($BUILD_CC)
else
BUILD_CC=$CC
fi
AS_VAR_IF([cross_compiling], [yes],
[AC_CHECK_PROGS([BUILD_CC], [gcc clang c99 c89 cc cl], [none])
AC_MSG_CHECKING([for native build C compiler])
AC_MSG_RESULT([$BUILD_CC])],
[BUILD_CC=$CC])
dnl Support systems with system libraries in e.g. /usr/lib64.
PHP_ARG_WITH([libdir],