@@ -399,11 +399,7 @@ endif()
399399# Check getaddrinfo().
400400include (PHP/CheckGetaddrinfo)
401401if (TARGET PHP::CheckGetaddrinfoLibrary)
402- target_link_libraries (
403- php_config
404- INTERFACE
405- PHP::CheckGetaddrinfoLibrary
406- )
402+ target_link_libraries (php_config INTERFACE PHP::CheckGetaddrinfoLibrary)
407403endif ()
408404
409405# Check copy_file_range().
@@ -766,17 +762,17 @@ block()
766762 if (PHP_LIBGCC)
767763 execute_process (
768764 COMMAND gcc --print-libgcc-file-name
769- OUTPUT_VARIABLE libgcc_path
765+ OUTPUT_VARIABLE path
770766 OUTPUT_STRIP_TRAILING_WHITESPACE
771767 )
772768
773- if (NOT EXISTS "${libgcc_path } " )
774- message (FATAL_ERROR "Cannot locate libgcc. " )
769+ if (NOT EXISTS "${path } " )
770+ message (FATAL_ERROR "The libgcc path not found ${path} " )
775771 endif ()
776772
777- message (STATUS "Explicitly linking against libgcc (${libgcc_path } )" )
773+ message (STATUS "Explicitly linking against libgcc (${path } )" )
778774
779- target_link_libraries (php_config INTERFACE ${libgcc_path } )
775+ target_link_libraries (php_config INTERFACE ${path } )
780776 endif ()
781777endblock()
782778
@@ -828,11 +824,9 @@ if(PHP_VALGRIND)
828824 PURPOSE "Necessary to enable Valgrind support."
829825 )
830826
831- if (Valgrind_FOUND)
832- set (HAVE_VALGRIND TRUE )
833- endif ()
834-
835827 target_link_libraries (php_config INTERFACE Valgrind::Valgrind)
828+
829+ set (HAVE_VALGRIND TRUE )
836830endif ()
837831add_feature_info(
838832 "Valgrind"
@@ -842,8 +836,6 @@ add_feature_info(
842836
843837# DTrace.
844838if (PHP_DTRACE)
845- message (CHECK_START "Checking for DTrace support" )
846-
847839 find_package (DTrace)
848840 set_package_properties(
849841 DTrace
@@ -867,14 +859,11 @@ if(PHP_DTRACE)
867859 INCLUDES
868860 $<TARGET_PROPERTY:PHP::config,INTERFACE_INCLUDE_DIRECTORIES >
869861 )
862+
870863 target_link_libraries (php_config INTERFACE DTrace::DTrace)
871864 target_link_libraries (php_sapi INTERFACE php_dtrace)
872865
873866 set (HAVE_DTRACE TRUE )
874-
875- message (CHECK_PASS "yes" )
876- else ()
877- message (CHECK_FAIL "no" )
878867 endif ()
879868endif ()
880869add_feature_info(
@@ -885,8 +874,6 @@ add_feature_info(
885874
886875# Dmalloc.
887876if (PHP_DMALLOC)
888- message (CHECK_START "Checking for Dmalloc support" )
889-
890877 find_package (Dmalloc)
891878 set_package_properties(
892879 Dmalloc
@@ -903,12 +890,7 @@ if(PHP_DMALLOC)
903890
904891 target_link_libraries (php_config INTERFACE Dmalloc::Dmalloc)
905892
906- if (Dmalloc_FOUND)
907- message (CHECK_PASS "yes" )
908- set (HAVE_DMALLOC TRUE )
909- else ()
910- message (CHECK_FAIL "no" )
911- endif ()
893+ set (HAVE_DMALLOC TRUE )
912894endif ()
913895add_feature_info(
914896 "Dmalloc"
0 commit comments