Checking kern.hwpmc is not enough to see if hwpmc is loaded or not, check

kern.hwpmc.nsamples
This commit is contained in:
Antoine Brodin 2014-02-03 21:55:12 +00:00
parent 4d351555e3
commit 414d82da35
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342473

View File

@ -28,9 +28,9 @@ DEBUGINFO_DESC= Add debug information (increased verbosity)
.include <bsd.port.options.mk>
HAS_HWMPC!= ${SYSCTL} kern.hwpmc >/dev/null 2>&1 && echo yes || true
HAS_HWPMC!= ${SYSCTL} kern.hwpmc.nsamples >/dev/null 2>&1 && echo yes || ${ECHO_CMD}
.if ${HAS_HWMPC} != "yes"
.if ${HAS_HWPMC} != yes
IGNORE= needs hwmpc module loaded or compiled into the kernel. \
Please consult hwpmc(4) on how to do it (or cat pkg-message)
.endif