Skip to content

Commit

Permalink
Fix too many arguments in FPM ACL compile check (#12242)
Browse files Browse the repository at this point in the history
The AC_COMPILE_IFELSE takes 3 arguments unlike AC_RUN_IFELSE which needs
the 4th argument for cross-compilation.
  • Loading branch information
petk committed Sep 19, 2023
1 parent 9652889 commit 186a07f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sapi/fpm/config.m4
Expand Up @@ -591,7 +591,7 @@ if test "$PHP_FPM" != "no"; then
return 0;
}
]])], [
AC_CHECK_LIB(acl, acl_free,
AC_CHECK_LIB(acl, acl_free,
[PHP_ADD_LIBRARY(acl)
have_fpm_acl=yes
AC_MSG_RESULT([yes])
Expand All @@ -615,12 +615,12 @@ if test "$PHP_FPM" != "no"; then
], [
have_fpm_acl=no
AC_MSG_RESULT([no])
], [AC_MSG_RESULT([skipped])])
], [AC_MSG_RESULT([skipped (cross-compiling)])])
])
], [
have_fpm_acl=no
AC_MSG_RESULT([no])
], [AC_MSG_RESULT([skipped (cross-compiling)])])
])

if test "$have_fpm_acl" = "yes"; then
AC_DEFINE([HAVE_FPM_ACL], 1, [do we have acl support?])
Expand Down

0 comments on commit 186a07f

Please sign in to comment.