Skip to content

Commit 393aa05

Browse files
committed
Merge branch 'PHP-7.4'
2 parents e35bdb4 + 3718a95 commit 393aa05

File tree

2 files changed

+4
-49
lines changed

2 files changed

+4
-49
lines changed

build/Makefile.gcov

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# LCOV
33
#
44

5+
LTP = lcov
6+
LTP_GENHTML = genhtml
7+
58
lcov: lcov-html
69

710
lcov-test: lcov-clean-data test

configure.ac

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ PHP_HELP_SEPARATOR([General settings:])
782782
PHP_ARG_ENABLE([gcov],
783783
[whether to include gcov symbols],
784784
[AS_HELP_STRING([--enable-gcov],
785-
[Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!])],
785+
[Enable GCOV code coverage - FOR DEVELOPERS ONLY!!])],
786786
[no],
787787
[no])
788788

@@ -802,54 +802,6 @@ if test "$PHP_GCOV" = "yes"; then
802802
AC_MSG_ERROR([ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1.])
803803
fi
804804

805-
dnl Min: 1.5 (i.e. 105, major * 100 + minor for easier comparison).
806-
ltp_version_min="105"
807-
dnl Non-working versions, e.g. "1.8 1.18";
808-
dnl Remove "none" when introducing the first incompatible LTP version and
809-
dnl separate any following additions by spaces.
810-
ltp_version_exclude="1.8"
811-
812-
AC_CHECK_PROG(LTP, lcov, lcov)
813-
AC_CHECK_PROG(LTP_GENHTML, genhtml, genhtml)
814-
PHP_SUBST(LTP)
815-
PHP_SUBST(LTP_GENHTML)
816-
817-
if test "$LTP"; then
818-
AC_CACHE_CHECK([for ltp version], php_cv_ltp_version, [
819-
php_cv_ltp_version=invalid
820-
ltp_version_vars=`$LTP -v 2>/dev/null | $SED -e 's/^.* //' -e 's/\./ /g' | tr -d a-z`
821-
if test -n "$ltp_version_vars"; then
822-
set $ltp_version_vars
823-
ltp_version="${1}.${2}"
824-
ltp_version_num="`expr ${1} \* 100 + ${2}`"
825-
if test $ltp_version_num -ge $ltp_version_min; then
826-
php_cv_ltp_version="$ltp_version (ok)"
827-
for ltp_check_version in $ltp_version_exclude; do
828-
if test "$ltp_version" = "$ltp_check_version"; then
829-
php_cv_ltp_version=invalid
830-
break
831-
fi
832-
done
833-
fi
834-
fi
835-
])
836-
else
837-
ltp_msg="To enable code coverage reporting you must have LTP installed"
838-
AC_MSG_ERROR([$ltp_msg])
839-
fi
840-
841-
case $php_cv_ltp_version in
842-
""|invalid[)]
843-
ltp_msg="This LTP version is not supported (found: $ltp_version, min: $ltp_version_min, excluded: $ltp_version_exclude)."
844-
AC_MSG_ERROR([$ltp_msg])
845-
LTP="exit 0;"
846-
;;
847-
esac
848-
849-
if test -z "$LTP_GENHTML"; then
850-
AC_MSG_ERROR([Could not find genhtml from the LTP package])
851-
fi
852-
853805
AC_DEFINE(HAVE_GCOV, 1, [Whether you have gcov])
854806
PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/build/Makefile.gcov, $abs_srcdir)
855807

0 commit comments

Comments
 (0)