Skip to content

Commit

Permalink
Use AX_CHECK_COMPILE_FLAG instead of PHP_CHECK_GCC_ARG
Browse files Browse the repository at this point in the history
The PHP_CHECK_GCC_ARG M4 macro has been removed since PHP 8.0.
  • Loading branch information
petk committed Feb 27, 2024
1 parent 59a888d commit 550a6c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ if test "$PHP_SOLR" != "no"; then
fi
if test "$PHP_COVERAGE" = "yes"; then
PHP_CHECK_GCC_ARG(-fprofile-arcs, COVERAGE_CFLAGS="$COVERAGE_CFLAGS -fprofile-arcs")
PHP_CHECK_GCC_ARG(-ftest-coverage, COVERAGE_CFLAGS="$COVERAGE_CFLAGS -ftest-coverage")
AX_CHECK_COMPILE_FLAG([-fprofile-arcs], [COVERAGE_CFLAGS="$COVERAGE_CFLAGS -fprofile-arcs"])
AX_CHECK_COMPILE_FLAG([-ftest-coverage], [COVERAGE_CFLAGS="$COVERAGE_CFLAGS -ftest-coverage"])
EXTRA_LDFLAGS="$COVERAGE_CFLAGS"
fi
Expand Down

0 comments on commit 550a6c6

Please sign in to comment.