rt-tests: Detect libcpupower presence
Add test to detect the presence of libcpupower on the system, allowing
to conditionally build features that depend on it.
The test uses a similar mechanism to the Linux kernel's tools' feature
detection: a small C program using the library is compiled, and based on
the success of the compilation, the presence of the library is
determined.
no_libcpupower=1 may be passed to make to disable libcpupower dependency
even on systems where the library is present.
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
4 files changed