build: add check for pciutils: libpci
Add a check for the pciutils package that the tool relies on for
compilation.
Change-Id: Ie12ede94bc3664a3cf1194d820f9c6e078f97866
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/configure.ac b/configure.ac
index ff3ba54..51cc165 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,6 +49,12 @@
[Could not find ipmiblob...openbmc/ipmi-blob-tool package required])
]
)
+PKG_CHECK_MODULES(
+ [PCILIB],
+ [libpci],
+ [],
+ [AC_MSG_ERROR([Could not find libpci... pciutils package required])]
+)
AC_CHECK_HEADER(
[blobs-ipmid],
[AC_MSG_ERROR(["phosphor-ipmi-blobs required and not found."])]