[RFC i-g-t 2/2] overlay/Makefile: Don't try to build overlay if libpciaccess is unavailable.

robert.foss
2016-05-25T18:44:09Z

Don't try to build overlay if libpciaccess is unavailable.
This is useful for platforms that typically don't have pci hardware, like ARM
platforms.

Signed-off-by: Robert Foss <robert.foss@collabora.com>
---
overlay/Makefile.am | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/overlay/Makefile.am b/overlay/Makefile.am
index c926557..a60c6b8 100644
--- a/overlay/Makefile.am
+++ b/overlay/Makefile.am
@@ -1,5 +1,8 @@
+
if BUILD_OVERLAY
-bin_PROGRAMS = intel-gpu-overlay
+ if HAVE_LIBPCIACCESS
+ bin_PROGRAMS = intel-gpu-overlay
+ endif
endif

AM_CPPFLAGS = -I.