We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5db847e commit 0775d68Copy full SHA for 0775d68
configure.ac
@@ -137,13 +137,11 @@ AC_PROG_CPP
137
AC_USE_SYSTEM_EXTENSIONS
138
AC_PROG_LN_S
139
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
+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])
147
148
dnl Support systems with system libraries in e.g. /usr/lib64.
149
PHP_ARG_WITH([libdir],
0 commit comments