@@ -782,7 +782,7 @@ PHP_HELP_SEPARATOR([General settings:])
782
782
PHP_ARG_ENABLE([ gcov] ,
783
783
[ whether to include gcov symbols] ,
784
784
[ AS_HELP_STRING ( [ --enable-gcov] ,
785
- [ Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!] ) ] ,
785
+ [ Enable GCOV code coverage - FOR DEVELOPERS ONLY!!] ) ] ,
786
786
[ no] ,
787
787
[ no] )
788
788
@@ -802,54 +802,6 @@ if test "$PHP_GCOV" = "yes"; then
802
802
AC_MSG_ERROR ( [ ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1.] )
803
803
fi
804
804
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
-
853
805
AC_DEFINE ( HAVE_GCOV , 1 , [ Whether you have gcov] )
854
806
PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/build/Makefile.gcov, $abs_srcdir)
855
807
0 commit comments