Skip to content

Commit 0775d68

Browse files
authored
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
1 parent 5db847e commit 0775d68

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

configure.ac

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,11 @@ AC_PROG_CPP
137137
AC_USE_SYSTEM_EXTENSIONS
138138
AC_PROG_LN_S
139139

140-
if test "$cross_compiling" = yes ; then
141-
AC_MSG_CHECKING(for native build C compiler)
142-
AC_CHECK_PROGS(BUILD_CC, [gcc clang c99 c89 cc cl],none)
143-
AC_MSG_RESULT($BUILD_CC)
144-
else
145-
BUILD_CC=$CC
146-
fi
140+
AS_VAR_IF([cross_compiling], [yes],
141+
[AC_CHECK_PROGS([BUILD_CC], [gcc clang c99 c89 cc cl], [none])
142+
AC_MSG_CHECKING([for native build C compiler])
143+
AC_MSG_RESULT([$BUILD_CC])],
144+
[BUILD_CC=$CC])
147145

148146
dnl Support systems with system libraries in e.g. /usr/lib64.
149147
PHP_ARG_WITH([libdir],

0 commit comments

Comments
 (0)